diff --git a/VisualStudio/osgWrappers/osg/wrapper_osg.dsp b/VisualStudio/osgWrappers/osg/wrapper_osg.dsp index 4d4f80a02..50942f891 100644 --- a/VisualStudio/osgWrappers/osg/wrapper_osg.dsp +++ b/VisualStudio/osgWrappers/osg/wrapper_osg.dsp @@ -115,34 +115,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\ArgumentParser.cpp SOURCE=..\..\..\src\osgWrappers\osg\Array.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\AutoTransform.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Billboard.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\BlendColor.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\BlendEquation.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\BlendFunc.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\BoundingBox.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\BoundingSphere.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\BufferObject.cpp # End Source File @@ -151,90 +123,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\BufferObject.cpp SOURCE=..\..\..\src\osgWrappers\osg\Camera.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CameraNode.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CameraView.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ClampColor.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ClearNode.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ClipNode.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ClipPlane.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ClusterCullingCallback.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CollectOccludersVisitor.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ColorMask.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ColorMatrix.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ConvexPlanarOccluder.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ConvexPlanarPolygon.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CoordinateSystemNode.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CopyOp.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CullFace.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CullSettings.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CullStack.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\CullingSet.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\DeleteHandler.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Depth.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\DisplaySettings.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\DrawPixels.cpp # End Source File @@ -267,130 +155,18 @@ SOURCE=..\..\..\src\osgWrappers\osg\FrameStamp.cpp SOURCE=..\..\..\src\osgWrappers\osg\FrontFace.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\GL2Extensions.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Geode.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Geometry.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\GraphicsContext.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\GraphicsThread.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Group.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Image.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\ImageStream.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LOD.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Light.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LightModel.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LightSource.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LineSegment.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LineStipple.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LineWidth.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\LogicOp.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Material.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Matrix.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\MatrixTransform.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Matrixd.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Matrixf.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Multisample.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Node.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\NodeCallback.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\NodeTrackerCallback.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\NodeVisitor.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Notify.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Object.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\OccluderNode.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\PagedLOD.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Plane.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Point.cpp # End Source File @@ -443,14 +219,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\Quat.cpp SOURCE=..\..\..\src\osgWrappers\osg\Referenced.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\RenderInfo.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Scissor.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Sequence.cpp # End Source File @@ -479,10 +247,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\ShapeDrawable.cpp SOURCE=..\..\..\src\osgWrappers\osg\State.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\StateAttribute.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\StateSet.cpp # End Source File @@ -491,10 +255,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\StateSet.cpp SOURCE=..\..\..\src\osgWrappers\osg\Stats.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Stencil.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\StencilTwoSided.cpp # End Source File @@ -503,10 +263,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\StencilTwoSided.cpp SOURCE=..\..\..\src\osgWrappers\osg\Switch.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TexEnv.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\TexEnvCombine.cpp # End Source File @@ -515,18 +271,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\TexEnvCombine.cpp SOURCE=..\..\..\src\osgWrappers\osg\TexEnvFilter.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TexGen.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TexGenNode.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TexMat.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Texture.cpp # End Source File @@ -551,10 +295,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\TextureCubeMap.cpp SOURCE=..\..\..\src\osgWrappers\osg\TextureRectangle.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Timer.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Transform.cpp # End Source File @@ -563,70 +303,22 @@ SOURCE=..\..\..\src\osgWrappers\osg\Transform.cpp SOURCE=..\..\..\src\osgWrappers\osg\Uniform.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec2.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec2b.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Vec2d.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec2f.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec2s.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec3.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec3b.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Vec3d.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec3f.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec3s.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec4.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Vec4b.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec4d.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec4f.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Vec4s.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec4ub.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\VertexProgram.cpp # End Source File @@ -635,14 +327,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\VertexProgram.cpp SOURCE=..\..\..\src\osgWrappers\osg\View.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Viewport.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\observer_ptr.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgDB/wrapper_osgDB.dsp b/VisualStudio/osgWrappers/osgDB/wrapper_osgDB.dsp index 24e4850ab..9e4b27129 100644 --- a/VisualStudio/osgWrappers/osgDB/wrapper_osgDB.dsp +++ b/VisualStudio/osgWrappers/osgDB/wrapper_osgDB.dsp @@ -95,58 +95,10 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\Archive.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\DatabasePager.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\DotOsgWrapper.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\DynamicLibrary.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\Field.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\FieldReader.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\FieldReaderIterator.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgDB\FileUtils.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\ImageOptions.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\Input.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\Output.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\ParameterOutput.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\ReaderWriter.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgDB\ReentrantMutex.cpp # End Source File @@ -155,10 +107,6 @@ SOURCE=..\..\..\src\osgWrappers\osgDB\ReentrantMutex.cpp SOURCE=..\..\..\src\osgWrappers\osgDB\Registry.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgDB\SharedStateManager.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp b/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp index 8afd1ac9c..fc94ab4c4 100644 --- a/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp +++ b/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp @@ -127,14 +127,6 @@ SOURCE=..\..\..\src\osgWrappers\osgFX\Scribe.cpp SOURCE=..\..\..\src\osgWrappers\osgFX\SpecularHighlights.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgFX\Technique.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgFX\Validator.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp b/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp index a81d232e2..0f013cc6e 100644 --- a/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp +++ b/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp @@ -143,14 +143,6 @@ SOURCE=..\..\..\src\osgWrappers\osgGA\NodeTrackerManipulator.cpp SOURCE=..\..\..\src\osgWrappers\osgGA\StateSetManipulator.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgGA\TerrainManipulator.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgGA\TrackballManipulator.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgGA\UFOManipulator.cpp # End Source File diff --git a/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp b/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp index c4785c238..f102ad3ab 100644 --- a/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp +++ b/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp @@ -119,22 +119,6 @@ SOURCE=..\..\..\src\osgWrappers\osgManipulator\Dragger.cpp SOURCE=..\..\..\src\osgWrappers\osgManipulator\Projector.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\RotateCylinderDragger.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\RotateSphereDragger.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\Scale1DDragger.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\Scale2DDragger.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgManipulator\ScaleAxisDragger.cpp # End Source File @@ -151,10 +135,6 @@ SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabBoxDragger.cpp SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabPlaneDragger.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabPlaneTrackballDragger.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgManipulator\TrackballDragger.cpp # End Source File diff --git a/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp b/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp index 018f00c15..1b21979f1 100644 --- a/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp +++ b/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp @@ -179,10 +179,6 @@ SOURCE=..\..\..\src\osgWrappers\osgParticle\Operator.cpp SOURCE=..\..\..\src\osgWrappers\osgParticle\Particle.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleEffect.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleProcessor.cpp # End Source File @@ -195,10 +191,6 @@ SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleSystem.cpp SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleSystemUpdater.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\Placer.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgParticle\PointPlacer.cpp # End Source File @@ -219,34 +211,10 @@ SOURCE=..\..\..\src\osgWrappers\osgParticle\RadialShooter.cpp SOURCE=..\..\..\src\osgWrappers\osgParticle\RandomRateCounter.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\SectorPlacer.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgParticle\SegmentPlacer.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\Shooter.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\SmokeEffect.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\SmokeTrailEffect.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\VariableRateCounter.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\range.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp b/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp index 2e100e1fc..b1e2dba97 100644 --- a/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp +++ b/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp @@ -95,10 +95,6 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgProducer\Export.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgProducer\GraphicsContextImplementation.cpp # End Source File @@ -119,10 +115,6 @@ SOURCE=..\..\..\src\osgWrappers\osgProducer\OsgSceneHandler.cpp SOURCE=..\..\..\src\osgWrappers\osgProducer\Viewer.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgProducer\ViewerEventHandler.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp b/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp index f5de1885d..916ee29f8 100644 --- a/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp +++ b/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp @@ -95,10 +95,6 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgShadow\Export.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgShadow\OccluderGeometry.cpp # End Source File @@ -111,10 +107,6 @@ SOURCE=..\..\..\src\osgWrappers\osgShadow\ParallelSplitShadowMap.cpp SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowMap.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowTechnique.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowTexture.cpp # End Source File diff --git a/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp b/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp index 5ac77e12d..1d8ac95e3 100644 --- a/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp +++ b/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp @@ -175,10 +175,6 @@ SOURCE=..\..\..\src\osgWrappers\osgSim\Sector.cpp SOURCE=..\..\..\src\osgWrappers\osgSim\SphereSegment.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgSim\VisibilityGroup.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp b/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp index 9a1fcbbc9..c56867c73 100644 --- a/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp +++ b/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp @@ -95,10 +95,6 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgText\Export.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgText\FadeText.cpp # End Source File @@ -111,10 +107,6 @@ SOURCE=..\..\..\src\osgWrappers\osgText\Font.cpp SOURCE=..\..\..\src\osgWrappers\osgText\String.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgText\Text.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp b/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp index 09be64f5f..ca0cd3d68 100644 --- a/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp +++ b/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp @@ -139,22 +139,6 @@ SOURCE=..\..\..\src\osgWrappers\osgUtil\LineSegmentIntersector.cpp SOURCE=..\..\..\src\osgWrappers\osgUtil\Optimizer.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\PlaneIntersector.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\PolytopeIntersector.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\PositionalStateContainer.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\ReflectionMapGenerator.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderBin.cpp # End Source File @@ -163,10 +147,6 @@ SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderBin.cpp SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderLeaf.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderStage.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgUtil\SceneView.cpp # End Source File @@ -175,42 +155,10 @@ SOURCE=..\..\..\src\osgWrappers\osgUtil\SceneView.cpp SOURCE=..\..\..\src\osgWrappers\osgUtil\Simplifier.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\SmoothingVisitor.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\StateGraph.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\Statistics.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\TangentSpaceGenerator.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\Tessellator.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\TransformAttributeFunctor.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\TransformCallback.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgUtil\TriStripVisitor.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\UpdateVisitor.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/src/osgWrappers/osg/AlphaFunc.cpp b/src/osgWrappers/osg/AlphaFunc.cpp index a5923c456..659161bfe 100644 --- a/src/osgWrappers/osg/AlphaFunc.cpp +++ b/src/osgWrappers/osg/AlphaFunc.cpp @@ -10,11 +10,12 @@ #include #include +#include +#include +#include +#include #include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -36,6 +37,7 @@ BEGIN_ENUM_REFLECTOR(osg::AlphaFunc::ComparisonFunction) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____AlphaFunc, "", @@ -51,32 +53,32 @@ BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -116,15 +118,283 @@ BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method2(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + Properties::NON_VIRTUAL, + __void__setFunction__ComparisonFunction__float, + "", + ""); + I_Method1(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, + Properties::NON_VIRTUAL, + __void__setFunction__ComparisonFunction, + "", + ""); + I_Method0(osg::AlphaFunc::ComparisonFunction, getFunction, + Properties::NON_VIRTUAL, + __ComparisonFunction__getFunction, + "", + ""); + I_Method1(void, setReferenceValue, IN, float, value, + Properties::NON_VIRTUAL, + __void__setReferenceValue__float, + "", + ""); + I_Method0(float, getReferenceValue, + Properties::NON_VIRTUAL, + __float__getReferenceValue, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); 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, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::AlphaFunc::ComparisonFunction) + I_EnumLabel(osg::AlphaFunc::NEVER); + I_EnumLabel(osg::AlphaFunc::LESS); + I_EnumLabel(osg::AlphaFunc::EQUAL); + I_EnumLabel(osg::AlphaFunc::LEQUAL); + I_EnumLabel(osg::AlphaFunc::GREATER); + I_EnumLabel(osg::AlphaFunc::NOTEQUAL); + I_EnumLabel(osg::AlphaFunc::GEQUAL); + I_EnumLabel(osg::AlphaFunc::ALWAYS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method2(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + Properties::NON_VIRTUAL, + __void__setFunction__ComparisonFunction__float, + "", + ""); + I_Method1(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, + Properties::NON_VIRTUAL, + __void__setFunction__ComparisonFunction, + "", + ""); + I_Method0(osg::AlphaFunc::ComparisonFunction, getFunction, + Properties::NON_VIRTUAL, + __ComparisonFunction__getFunction, + "", + ""); + I_Method1(void, setReferenceValue, IN, float, value, + Properties::NON_VIRTUAL, + __void__setReferenceValue__float, + "", + ""); + I_Method0(float, getReferenceValue, + Properties::NON_VIRTUAL, + __float__getReferenceValue, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method2(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + Properties::NON_VIRTUAL, + __void__setFunction__ComparisonFunction__float, + "", + ""); + I_Method1(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, + Properties::NON_VIRTUAL, + __void__setFunction__ComparisonFunction, + "", + ""); + I_Method0(osg::AlphaFunc::ComparisonFunction, getFunction, + Properties::NON_VIRTUAL, + __ComparisonFunction__getFunction, + "", + ""); + I_Method1(void, setReferenceValue, IN, float, value, + Properties::NON_VIRTUAL, + __void__setReferenceValue__float, + "", + ""); + I_Method0(float, getReferenceValue, + Properties::NON_VIRTUAL, + __float__getReferenceValue, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(osg::AlphaFunc::ComparisonFunction, Function, + __ComparisonFunction__getFunction, + __void__setFunction__ComparisonFunction); + I_SimpleProperty(float, ReferenceValue, + __float__getReferenceValue, + __void__setReferenceValue__float); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/AnimationPath.cpp b/src/osgWrappers/osg/AnimationPath.cpp index 5ecb44567..24e4b6ceb 100644 --- a/src/osgWrappers/osg/AnimationPath.cpp +++ b/src/osgWrappers/osg/AnimationPath.cpp @@ -10,13 +10,14 @@ #include #include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include -#include #include #include @@ -37,6 +38,7 @@ BEGIN_ENUM_REFLECTOR(osg::AnimationPath::LoopMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) + I_VirtualBaseType(osg::Object); I_VirtualBaseType(osg::Object); I_Constructor0(____AnimationPath, "", @@ -48,13 +50,13 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -63,13 +65,392 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getInverse__double__Matrixd_R1, + "", + ""); + I_Method2(bool, getInterpolatedControlPoint, IN, double, time, IN, osg::AnimationPath::ControlPoint &, controlPoint, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__insert__double__C5_ControlPoint_R1, + "", + ""); + I_Method0(double, getFirstTime, + Properties::NON_VIRTUAL, + __double__getFirstTime, + "", + ""); + I_Method0(double, getLastTime, + Properties::NON_VIRTUAL, + __double__getLastTime, + "", + ""); + I_Method0(double, getPeriod, + Properties::NON_VIRTUAL, + __double__getPeriod, + "", + ""); + I_Method1(void, setLoopMode, IN, osg::AnimationPath::LoopMode, lm, + Properties::NON_VIRTUAL, + __void__setLoopMode__LoopMode, + "", + ""); + I_Method0(osg::AnimationPath::LoopMode, getLoopMode, + Properties::NON_VIRTUAL, + __LoopMode__getLoopMode, + "", + ""); + I_Method1(void, setTimeControlPointMap, IN, osg::AnimationPath::TimeControlPointMap &, tcpm, + Properties::NON_VIRTUAL, + __void__setTimeControlPointMap__TimeControlPointMap_R1, + "", + ""); + I_Method0(osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(const osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __C5_TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method1(void, read, IN, std::istream &, in, + Properties::NON_VIRTUAL, + __void__read__std_istream_R1, + "Read the animation path from a flat ASCII file stream. ", + ""); + I_Method1(void, write, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__write__std_ostream_R1, + "Write the animation path to a flat ASCII file stream. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getInverse__double__Matrixd_R1, + "", + ""); + I_Method2(bool, getInterpolatedControlPoint, IN, double, time, IN, osg::AnimationPath::ControlPoint &, controlPoint, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__insert__double__C5_ControlPoint_R1, + "", + ""); + I_Method0(double, getFirstTime, + Properties::NON_VIRTUAL, + __double__getFirstTime, + "", + ""); + I_Method0(double, getLastTime, + Properties::NON_VIRTUAL, + __double__getLastTime, + "", + ""); + I_Method0(double, getPeriod, + Properties::NON_VIRTUAL, + __double__getPeriod, + "", + ""); + I_Method1(void, setLoopMode, IN, osg::AnimationPath::LoopMode, lm, + Properties::NON_VIRTUAL, + __void__setLoopMode__LoopMode, + "", + ""); + I_Method0(osg::AnimationPath::LoopMode, getLoopMode, + Properties::NON_VIRTUAL, + __LoopMode__getLoopMode, + "", + ""); + I_Method1(void, setTimeControlPointMap, IN, osg::AnimationPath::TimeControlPointMap &, tcpm, + Properties::NON_VIRTUAL, + __void__setTimeControlPointMap__TimeControlPointMap_R1, + "", + ""); + I_Method0(osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(const osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __C5_TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method1(void, read, IN, std::istream &, in, + Properties::NON_VIRTUAL, + __void__read__std_istream_R1, + "Read the animation path from a flat ASCII file stream. ", + ""); + I_Method1(void, write, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::map< double COMMA osg::AnimationPath::ControlPoint >, osg::AnimationPath::TimeControlPointMap); + +BEGIN_ENUM_REFLECTOR(osg::AnimationPath::LoopMode) + I_EnumLabel(osg::AnimationPath::SWING); + I_EnumLabel(osg::AnimationPath::LOOP); + I_EnumLabel(osg::AnimationPath::NO_LOOPING); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) + I_VirtualBaseType(osg::Object); + I_VirtualBaseType(osg::Object); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getInverse__double__Matrixd_R1, + "", + ""); + I_Method2(bool, getInterpolatedControlPoint, IN, double, time, IN, osg::AnimationPath::ControlPoint &, controlPoint, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__insert__double__C5_ControlPoint_R1, + "", + ""); + I_Method0(double, getFirstTime, + Properties::NON_VIRTUAL, + __double__getFirstTime, + "", + ""); + I_Method0(double, getLastTime, + Properties::NON_VIRTUAL, + __double__getLastTime, + "", + ""); + I_Method0(double, getPeriod, + Properties::NON_VIRTUAL, + __double__getPeriod, + "", + ""); + I_Method1(void, setLoopMode, IN, osg::AnimationPath::LoopMode, lm, + Properties::NON_VIRTUAL, + __void__setLoopMode__LoopMode, + "", + ""); + I_Method0(osg::AnimationPath::LoopMode, getLoopMode, + Properties::NON_VIRTUAL, + __LoopMode__getLoopMode, + "", + ""); + I_Method1(void, setTimeControlPointMap, IN, osg::AnimationPath::TimeControlPointMap &, tcpm, + Properties::NON_VIRTUAL, + __void__setTimeControlPointMap__TimeControlPointMap_R1, + "", + ""); + I_Method0(osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(const osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __C5_TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method1(void, read, IN, std::istream &, in, + Properties::NON_VIRTUAL, + __void__read__std_istream_R1, + "Read the animation path from a flat ASCII file stream. ", + ""); + I_Method1(void, write, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__write__std_ostream_R1, + "Write the animation path to a flat ASCII file stream. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixf &, matrix, Properties::NON_VIRTUAL, __bool__getMatrix__double__Matrixf_R1, @@ -173,6 +554,246 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) + I_Constructor0(____ControlPoint, + "", + ""); + I_Constructor1(IN, const osg::Vec3d &, position, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + Properties::NON_VIRTUAL, + __void__setRotation__C5_osg_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_osg_Quat_R1__getRotation, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getScale, + "", + ""); + I_Method3(void, interpolate, IN, float, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__interpolate__double__C5_ControlPoint_R1__C5_ControlPoint_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__getMatrix__Matrixf_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__getMatrix__Matrixd_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__getInverse__Matrixf_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__getInverse__Matrixd_R1, + "", + ""); + I_Constructor0(____ControlPoint, + "", + ""); + I_Constructor1(IN, const osg::Vec3d &, position, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + Properties::NON_VIRTUAL, + __void__setRotation__C5_osg_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_osg_Quat_R1__getRotation, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getScale, + "", + ""); + I_Method3(void, interpolate, IN, float, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__interpolate__double__C5_ControlPoint_R1__C5_ControlPoint_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__getMatrix__Matrixf_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__getMatrix__Matrixd_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__getInverse__Matrixf_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __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_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) + I_Constructor0(____ControlPoint, + "", + ""); + I_Constructor1(IN, const osg::Vec3d &, position, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + Properties::NON_VIRTUAL, + __void__setRotation__C5_osg_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_osg_Quat_R1__getRotation, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getScale, + "", + ""); + I_Method3(void, interpolate, IN, float, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__interpolate__double__C5_ControlPoint_R1__C5_ControlPoint_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__getMatrix__Matrixf_R1, + "", + ""); + I_Method1(void, getMatrix, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__getMatrix__Matrixd_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__getInverse__Matrixf_R1, + "", + ""); + I_Method1(void, getInverse, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__getInverse__Matrixd_R1, + "", + ""); I_Constructor0(____ControlPoint, "", ""); @@ -261,6 +882,7 @@ BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) + I_BaseType(osg::NodeCallback); I_BaseType(osg::NodeCallback); I_Constructor0(____AnimationPathCallback, "", @@ -272,13 +894,13 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -287,13 +909,133 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setAnimationPath__AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method1(void, setUseInverseMatrix, IN, bool, useInverseMatrix, + Properties::NON_VIRTUAL, + __void__setUseInverseMatrix__bool, + "", + ""); + I_Method0(bool, getUseInverseMatrix, + Properties::NON_VIRTUAL, + __bool__getUseInverseMatrix, + "", + ""); + I_Method1(void, setTimeOffset, IN, double, offset, + Properties::NON_VIRTUAL, + __void__setTimeOffset__double, + "", + ""); + I_Method0(double, getTimeOffset, + Properties::NON_VIRTUAL, + __double__getTimeOffset, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, multiplier, + Properties::NON_VIRTUAL, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + Properties::NON_VIRTUAL, + __double__getTimeMultiplier, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + Properties::NON_VIRTUAL, + __void__setPause__bool, + "", + ""); + I_Method0(bool, getPause, + Properties::NON_VIRTUAL, + __bool__getPause, + "", + ""); + I_Method0(double, getAnimationTime, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__update__osg_Node_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); 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. ", @@ -412,7 +1154,282 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) I_PublicMemberProperty(double, _latestTime); I_PublicMemberProperty(bool, _pause); I_PublicMemberProperty(double, _pauseTime); + I_PublicMemberProperty(osg::ref_ptr< osg::AnimationPath >, _animationPath); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< double COMMA osg::AnimationPath::ControlPoint >); +BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) + I_BaseType(osg::NodeCallback); + I_BaseType(osg::NodeCallback); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setAnimationPath__AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method1(void, setUseInverseMatrix, IN, bool, useInverseMatrix, + Properties::NON_VIRTUAL, + __void__setUseInverseMatrix__bool, + "", + ""); + I_Method0(bool, getUseInverseMatrix, + Properties::NON_VIRTUAL, + __bool__getUseInverseMatrix, + "", + ""); + I_Method1(void, setTimeOffset, IN, double, offset, + Properties::NON_VIRTUAL, + __void__setTimeOffset__double, + "", + ""); + I_Method0(double, getTimeOffset, + Properties::NON_VIRTUAL, + __double__getTimeOffset, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, multiplier, + Properties::NON_VIRTUAL, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + Properties::NON_VIRTUAL, + __double__getTimeMultiplier, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + Properties::NON_VIRTUAL, + __void__setPause__bool, + "", + ""); + I_Method0(bool, getPause, + Properties::NON_VIRTUAL, + __bool__getPause, + "", + ""); + I_Method0(double, getAnimationTime, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__update__osg_Node_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setAnimationPath__AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method1(void, setUseInverseMatrix, IN, bool, useInverseMatrix, + Properties::NON_VIRTUAL, + __void__setUseInverseMatrix__bool, + "", + ""); + I_Method0(bool, getUseInverseMatrix, + Properties::NON_VIRTUAL, + __bool__getUseInverseMatrix, + "", + ""); + I_Method1(void, setTimeOffset, IN, double, offset, + Properties::NON_VIRTUAL, + __void__setTimeOffset__double, + "", + ""); + I_Method0(double, getTimeOffset, + Properties::NON_VIRTUAL, + __double__getTimeOffset, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, multiplier, + Properties::NON_VIRTUAL, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + Properties::NON_VIRTUAL, + __double__getTimeMultiplier, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + Properties::NON_VIRTUAL, + __void__setPause__bool, + "", + ""); + I_Method0(bool, getPause, + Properties::NON_VIRTUAL, + __bool__getPause, + "", + ""); + I_Method0(double, getAnimationTime, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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); + I_PublicMemberProperty(double, _timeOffset); + I_PublicMemberProperty(double, _timeMultiplier); + I_PublicMemberProperty(double, _firstTime); + I_PublicMemberProperty(double, _latestTime); + I_PublicMemberProperty(bool, _pause); + I_PublicMemberProperty(double, _pauseTime); + I_PublicMemberProperty(osg::ref_ptr< osg::AnimationPath >, _animationPath); +END_REFLECTOR diff --git a/src/osgWrappers/osg/ApplicationUsage.cpp b/src/osgWrappers/osg/ApplicationUsage.cpp index a631ee170..4f50ac84b 100644 --- a/src/osgWrappers/osg/ApplicationUsage.cpp +++ b/src/osgWrappers/osg/ApplicationUsage.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -30,6 +31,135 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ApplicationUsage, + "", + ""); + I_Constructor1(IN, const std::string &, commandLineUsage, + Properties::NON_EXPLICIT, + ____ApplicationUsage__C5_std_string_R1, + "", + ""); + I_Method1(void, setApplicationName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setApplicationName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getApplicationName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getApplicationName, + "", + ""); + I_Method1(void, setDescription, IN, const std::string &, desc, + Properties::NON_VIRTUAL, + __void__setDescription__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDescription, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDescription, + "", + ""); + I_Method3(void, addUsageExplanation, IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__addUsageExplanation__Type__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineUsage, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__setCommandLineUsage__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommandLineUsage, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommandLineUsage, + "", + ""); + I_MethodWithDefaults3(void, addCommandLineOption, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, + __void__addCommandLineOption__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineOptions, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setCommandLineOptions__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptions, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getCommandLineOptions, + "", + ""); + I_Method1(void, setCommandLineOptionsDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setCommandLineOptionsDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptionsDefaults, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getCommandLineOptionsDefaults, + "", + ""); + I_MethodWithDefaults3(void, addEnvironmentalVariable, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, + __void__addEnvironmentalVariable__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setEnvironmentalVariables, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setEnvironmentalVariables__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariables, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getEnvironmentalVariables, + "", + ""); + I_Method1(void, setEnvironmentalVariablesDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariablesDefaults, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, + "", + ""); + I_Method2(void, addKeyboardMouseBinding, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__addKeyboardMouseBinding__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setKeyboardMouseBindings, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setKeyboardMouseBindings__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getKeyboardMouseBindings, + Properties::NON_VIRTUAL, + __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(), + Properties::NON_VIRTUAL, + __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(), + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__write__std_ostream_R1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method1(void, writeEnvironmentSettings, IN, std::ostream &, output, + Properties::NON_VIRTUAL, + __void__writeEnvironmentSettings__std_ostream_R1, + "", + ""); I_Constructor0(____ApplicationUsage, "", ""); @@ -162,6 +292,311 @@ BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) __ApplicationUsage_P1__instance_S, "", ""); + 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 + +TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osg::ApplicationUsage::UsageMap); + +BEGIN_ENUM_REFLECTOR(osg::ApplicationUsage::Type) + I_EnumLabel(osg::ApplicationUsage::COMMAND_LINE_OPTION); + I_EnumLabel(osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE); + I_EnumLabel(osg::ApplicationUsage::KEYBOARD_MOUSE_BINDING); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ApplicationUsage, + "", + ""); + I_Constructor1(IN, const std::string &, commandLineUsage, + Properties::NON_EXPLICIT, + ____ApplicationUsage__C5_std_string_R1, + "", + ""); + I_Method1(void, setApplicationName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setApplicationName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getApplicationName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getApplicationName, + "", + ""); + I_Method1(void, setDescription, IN, const std::string &, desc, + Properties::NON_VIRTUAL, + __void__setDescription__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDescription, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDescription, + "", + ""); + I_Method3(void, addUsageExplanation, IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__addUsageExplanation__Type__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineUsage, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__setCommandLineUsage__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommandLineUsage, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommandLineUsage, + "", + ""); + I_MethodWithDefaults3(void, addCommandLineOption, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, + __void__addCommandLineOption__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineOptions, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setCommandLineOptions__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptions, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getCommandLineOptions, + "", + ""); + I_Method1(void, setCommandLineOptionsDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setCommandLineOptionsDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptionsDefaults, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getCommandLineOptionsDefaults, + "", + ""); + I_MethodWithDefaults3(void, addEnvironmentalVariable, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, + __void__addEnvironmentalVariable__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setEnvironmentalVariables, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setEnvironmentalVariables__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariables, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getEnvironmentalVariables, + "", + ""); + I_Method1(void, setEnvironmentalVariablesDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariablesDefaults, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, + "", + ""); + I_Method2(void, addKeyboardMouseBinding, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__addKeyboardMouseBinding__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setKeyboardMouseBindings, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setKeyboardMouseBindings__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getKeyboardMouseBindings, + Properties::NON_VIRTUAL, + __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(), + Properties::NON_VIRTUAL, + __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(), + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__write__std_ostream_R1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method1(void, writeEnvironmentSettings, IN, std::ostream &, output, + Properties::NON_VIRTUAL, + __void__writeEnvironmentSettings__std_ostream_R1, + "", + ""); + I_Constructor0(____ApplicationUsage, + "", + ""); + I_Constructor1(IN, const std::string &, commandLineUsage, + Properties::NON_EXPLICIT, + ____ApplicationUsage__C5_std_string_R1, + "", + ""); + I_Method1(void, setApplicationName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setApplicationName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getApplicationName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getApplicationName, + "", + ""); + I_Method1(void, setDescription, IN, const std::string &, desc, + Properties::NON_VIRTUAL, + __void__setDescription__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDescription, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDescription, + "", + ""); + I_Method3(void, addUsageExplanation, IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__addUsageExplanation__Type__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineUsage, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__setCommandLineUsage__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommandLineUsage, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommandLineUsage, + "", + ""); + I_MethodWithDefaults3(void, addCommandLineOption, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, + __void__addCommandLineOption__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCommandLineOptions, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setCommandLineOptions__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptions, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getCommandLineOptions, + "", + ""); + I_Method1(void, setCommandLineOptionsDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setCommandLineOptionsDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptionsDefaults, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getCommandLineOptionsDefaults, + "", + ""); + I_MethodWithDefaults3(void, addEnvironmentalVariable, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, + __void__addEnvironmentalVariable__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setEnvironmentalVariables, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setEnvironmentalVariables__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariables, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getEnvironmentalVariables, + "", + ""); + I_Method1(void, setEnvironmentalVariablesDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariablesDefaults, + Properties::NON_VIRTUAL, + __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, + "", + ""); + I_Method2(void, addKeyboardMouseBinding, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, + __void__addKeyboardMouseBinding__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setKeyboardMouseBindings, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, + __void__setKeyboardMouseBindings__C5_UsageMap_R1, + "", + ""); + I_Method0(const osg::ApplicationUsage::UsageMap &, getKeyboardMouseBindings, + Properties::NON_VIRTUAL, + __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(), + Properties::NON_VIRTUAL, + __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(), + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__write__std_ostream_R1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method1(void, writeEnvironmentSettings, IN, std::ostream &, output, + Properties::NON_VIRTUAL, + __void__writeEnvironmentSettings__std_ostream_R1, + "", + ""); + I_StaticMethod0(osg::ApplicationUsage *, instance, + __ApplicationUsage_P1__instance_S, + "", + ""); + 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); @@ -193,7 +628,20 @@ BEGIN_VALUE_REFLECTOR(osg::ApplicationUsageProxy) ____ApplicationUsageProxy__ApplicationUsage_Type__C5_std_string_R1__C5_std_string_R1, "register an explanation of commandline/evironmentalvaraible/keyboard mouse usage. ", ""); + 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 >); +BEGIN_VALUE_REFLECTOR(osg::ApplicationUsageProxy) + 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. ", + ""); + 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 diff --git a/src/osgWrappers/osg/ArgumentParser.cpp b/src/osgWrappers/osg/ArgumentParser.cpp index 13531eb2c..f033df654 100644 --- a/src/osgWrappers/osg/ArgumentParser.cpp +++ b/src/osgWrappers/osg/ArgumentParser.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -218,6 +219,628 @@ BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) __void__writeErrorMessages__std_ostream_R1__ErrorSeverity, "Write error messages to the given ostream, if at or above the given severiity. ", ""); + I_Constructor2(IN, int *, argc, IN, char **, argv, + ____ArgumentParser__int_P1__char_P1P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, usage, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(int &, argc, + Properties::NON_VIRTUAL, + __int_R1__argc, + "Return the argument count. ", + ""); + I_Method0(char **, argv, + Properties::NON_VIRTUAL, + __char_P1P1__argv, + "Return the argument array. ", + ""); + I_Method0(std::string, getApplicationName, + Properties::NON_VIRTUAL, + __std_string__getApplicationName, + "Return the application name, as specified by argv[0]. ", + ""); + I_Method1(int, find, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__isNumber__int, + "Return true if the specified parameter is a number. ", + ""); + I_Method0(bool, containsOptions, + Properties::NON_VIRTUAL, + __bool__containsOptions, + "", + ""); + I_MethodWithDefaults2(void, remove, IN, int, pos, , IN, int, num, 1, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__reportRemainingOptionsAsUnrecognized__ErrorSeverity, + "For each remaining option, report it as unrecognized. ", + ""); + I_Method0(osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __ErrorMessageMap_R1__getErrorMessageMap, + "Return the error message, if any has occured. ", + ""); + I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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 + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >, osg::ArgumentParser::ErrorMessageMap); + +BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::ErrorSeverity) + I_EnumLabel(osg::ArgumentParser::BENIGN); + I_EnumLabel(osg::ArgumentParser::CRITICAL); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) + I_Constructor2(IN, int *, argc, IN, char **, argv, + ____ArgumentParser__int_P1__char_P1P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, usage, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(int &, argc, + Properties::NON_VIRTUAL, + __int_R1__argc, + "Return the argument count. ", + ""); + I_Method0(char **, argv, + Properties::NON_VIRTUAL, + __char_P1P1__argv, + "Return the argument array. ", + ""); + I_Method0(std::string, getApplicationName, + Properties::NON_VIRTUAL, + __std_string__getApplicationName, + "Return the application name, as specified by argv[0]. ", + ""); + I_Method1(int, find, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__isNumber__int, + "Return true if the specified parameter is a number. ", + ""); + I_Method0(bool, containsOptions, + Properties::NON_VIRTUAL, + __bool__containsOptions, + "", + ""); + I_MethodWithDefaults2(void, remove, IN, int, pos, , IN, int, num, 1, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__reportRemainingOptionsAsUnrecognized__ErrorSeverity, + "For each remaining option, report it as unrecognized. ", + ""); + I_Method0(osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __ErrorMessageMap_R1__getErrorMessageMap, + "Return the error message, if any has occured. ", + ""); + I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__writeErrorMessages__std_ostream_R1__ErrorSeverity, + "Write error messages to the given ostream, if at or above the given severiity. ", + ""); + I_Constructor2(IN, int *, argc, IN, char **, argv, + ____ArgumentParser__int_P1__char_P1P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, usage, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(int &, argc, + Properties::NON_VIRTUAL, + __int_R1__argc, + "Return the argument count. ", + ""); + I_Method0(char **, argv, + Properties::NON_VIRTUAL, + __char_P1P1__argv, + "Return the argument array. ", + ""); + I_Method0(std::string, getApplicationName, + Properties::NON_VIRTUAL, + __std_string__getApplicationName, + "Return the application name, as specified by argv[0]. ", + ""); + I_Method1(int, find, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__isNumber__int, + "Return true if the specified parameter is a number. ", + ""); + I_Method0(bool, containsOptions, + Properties::NON_VIRTUAL, + __bool__containsOptions, + "", + ""); + I_MethodWithDefaults2(void, remove, IN, int, pos, , IN, int, num, 1, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__reportRemainingOptionsAsUnrecognized__ErrorSeverity, + "For each remaining option, report it as unrecognized. ", + ""); + I_Method0(osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __ErrorMessageMap_R1__getErrorMessageMap, + "Return the error message, if any has occured. ", + ""); + I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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. ", @@ -290,7 +913,136 @@ BEGIN_VALUE_REFLECTOR(osg::ArgumentParser::Parameter) __bool__assign__C5_char_P1, "", ""); + I_Constructor1(IN, float &, value, + Properties::NON_EXPLICIT, + ____Parameter__float_R1, + "", + ""); + I_Constructor1(IN, double &, value, + Properties::NON_EXPLICIT, + ____Parameter__double_R1, + "", + ""); + I_Constructor1(IN, int &, value, + Properties::NON_EXPLICIT, + ____Parameter__int_R1, + "", + ""); + I_Constructor1(IN, unsigned int &, value, + Properties::NON_EXPLICIT, + ____Parameter__unsigned_int_R1, + "", + ""); + I_Constructor1(IN, std::string &, value, + Properties::NON_EXPLICIT, + ____Parameter__std_string_R1, + "", + ""); + I_Constructor1(IN, const osg::ArgumentParser::Parameter &, param, + Properties::NON_EXPLICIT, + ____Parameter__C5_Parameter_R1, + "", + ""); + I_Method1(bool, valid, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__valid__C5_char_P1, + "", + ""); + I_Method1(bool, assign, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__assign__C5_char_P1, + "", + ""); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >); +BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::Parameter::ParameterType) + I_EnumLabel(osg::ArgumentParser::Parameter::FLOAT_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::DOUBLE_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::INT_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::UNSIGNED_INT_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::STRING_PARAMETER); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ArgumentParser::Parameter) + I_Constructor1(IN, float &, value, + Properties::NON_EXPLICIT, + ____Parameter__float_R1, + "", + ""); + I_Constructor1(IN, double &, value, + Properties::NON_EXPLICIT, + ____Parameter__double_R1, + "", + ""); + I_Constructor1(IN, int &, value, + Properties::NON_EXPLICIT, + ____Parameter__int_R1, + "", + ""); + I_Constructor1(IN, unsigned int &, value, + Properties::NON_EXPLICIT, + ____Parameter__unsigned_int_R1, + "", + ""); + I_Constructor1(IN, std::string &, value, + Properties::NON_EXPLICIT, + ____Parameter__std_string_R1, + "", + ""); + I_Constructor1(IN, const osg::ArgumentParser::Parameter &, param, + Properties::NON_EXPLICIT, + ____Parameter__C5_Parameter_R1, + "", + ""); + I_Method1(bool, valid, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__valid__C5_char_P1, + "", + ""); + I_Method1(bool, assign, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__assign__C5_char_P1, + "", + ""); + I_Constructor1(IN, float &, value, + Properties::NON_EXPLICIT, + ____Parameter__float_R1, + "", + ""); + I_Constructor1(IN, double &, value, + Properties::NON_EXPLICIT, + ____Parameter__double_R1, + "", + ""); + I_Constructor1(IN, int &, value, + Properties::NON_EXPLICIT, + ____Parameter__int_R1, + "", + ""); + I_Constructor1(IN, unsigned int &, value, + Properties::NON_EXPLICIT, + ____Parameter__unsigned_int_R1, + "", + ""); + I_Constructor1(IN, std::string &, value, + Properties::NON_EXPLICIT, + ____Parameter__std_string_R1, + "", + ""); + I_Constructor1(IN, const osg::ArgumentParser::Parameter &, param, + Properties::NON_EXPLICIT, + ____Parameter__C5_Parameter_R1, + "", + ""); + I_Method1(bool, valid, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__valid__C5_char_P1, + "", + ""); + I_Method1(bool, assign, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__assign__C5_char_P1, + "", + ""); +END_REFLECTOR diff --git a/src/osgWrappers/osg/Array.cpp b/src/osgWrappers/osg/Array.cpp index dbb9a1fbd..b40a0ebcc 100644 --- a/src/osgWrappers/osg/Array.cpp +++ b/src/osgWrappers/osg/Array.cpp @@ -10,19 +10,20 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -54,6 +55,7 @@ BEGIN_ENUM_REFLECTOR(osg::Array::Type) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0, ____Array__Type__GLint__GLenum, @@ -71,13 +73,111 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::PURE_VIRTUAL, + __void__accept__ArrayVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__ConstArrayVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::PURE_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(GLint, getDataSize, + Properties::NON_VIRTUAL, + __GLint__getDataSize, + "", + ""); + I_Method0(GLenum, getDataType, + Properties::NON_VIRTUAL, + __GLenum__getDataType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::PURE_VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::PURE_VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumElements, + "", + ""); + I_Method0(void, trim, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, accept, IN, osg::ArrayVisitor &, x, Properties::PURE_VIRTUAL, __void__accept__ArrayVisitor_R1, @@ -173,291 +273,308 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) 0); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ArrayVisitor) - I_Constructor0(____ArrayVisitor, - "", - ""); - I_Method1(void, apply, IN, osg::Array &, x, - Properties::VIRTUAL, - __void__apply__Array_R1, - "", - ""); - I_Method1(void, apply, IN, osg::ByteArray &, x, - Properties::VIRTUAL, - __void__apply__ByteArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::ShortArray &, x, - Properties::VIRTUAL, - __void__apply__ShortArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::IntArray &, x, - Properties::VIRTUAL, - __void__apply__IntArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::UByteArray &, x, - Properties::VIRTUAL, - __void__apply__UByteArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::UShortArray &, x, - Properties::VIRTUAL, - __void__apply__UShortArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::UIntArray &, x, - Properties::VIRTUAL, - __void__apply__UIntArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::FloatArray &, x, - Properties::VIRTUAL, - __void__apply__FloatArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2Array &, x, - Properties::VIRTUAL, - __void__apply__Vec2Array_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3Array &, x, - Properties::VIRTUAL, - __void__apply__Vec3Array_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4Array &, x, - Properties::VIRTUAL, - __void__apply__Vec4Array_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4ubArray &, x, - Properties::VIRTUAL, - __void__apply__Vec4ubArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2bArray &, x, - Properties::VIRTUAL, - __void__apply__Vec2bArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3bArray &, x, - Properties::VIRTUAL, - __void__apply__Vec3bArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4bArray &, x, - Properties::VIRTUAL, - __void__apply__Vec4bArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2sArray &, x, - Properties::VIRTUAL, - __void__apply__Vec2sArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3sArray &, x, - Properties::VIRTUAL, - __void__apply__Vec3sArray_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4sArray &, x, - Properties::VIRTUAL, - __void__apply__Vec4sArray_R1, - "", - ""); +BEGIN_ENUM_REFLECTOR(osg::Array::Type) + I_EnumLabel(osg::Array::ArrayType); + I_EnumLabel(osg::Array::ByteArrayType); + I_EnumLabel(osg::Array::ShortArrayType); + I_EnumLabel(osg::Array::IntArrayType); + I_EnumLabel(osg::Array::UByteArrayType); + I_EnumLabel(osg::Array::UShortArrayType); + I_EnumLabel(osg::Array::UIntArrayType); + I_EnumLabel(osg::Array::Vec4ubArrayType); + I_EnumLabel(osg::Array::FloatArrayType); + I_EnumLabel(osg::Array::Vec2ArrayType); + I_EnumLabel(osg::Array::Vec3ArrayType); + I_EnumLabel(osg::Array::Vec4ArrayType); + I_EnumLabel(osg::Array::Vec2sArrayType); + I_EnumLabel(osg::Array::Vec3sArrayType); + I_EnumLabel(osg::Array::Vec4sArrayType); + I_EnumLabel(osg::Array::Vec2bArrayType); + I_EnumLabel(osg::Array::Vec3bArrayType); + I_EnumLabel(osg::Array::Vec4bArrayType); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ConstArrayVisitor) - I_Constructor0(____ConstArrayVisitor, - "", - ""); - I_Method1(void, apply, IN, const osg::Array &, x, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, Properties::VIRTUAL, - __void__apply__C5_Array_R1, + __bool__isSameKindAs__C5_Object_P1, "", ""); - I_Method1(void, apply, IN, const osg::ByteArray &, x, + I_Method0(const char *, libraryName, Properties::VIRTUAL, - __void__apply__C5_ByteArray_R1, + __C5_char_P1__libraryName, "", ""); - I_Method1(void, apply, IN, const osg::ShortArray &, x, + I_Method0(const char *, className, Properties::VIRTUAL, - __void__apply__C5_ShortArray_R1, + __C5_char_P1__className, "", ""); - I_Method1(void, apply, IN, const osg::IntArray &, x, - Properties::VIRTUAL, - __void__apply__C5_IntArray_R1, + I_Method1(void, accept, IN, osg::ArrayVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__ArrayVisitor_R1, "", ""); - I_Method1(void, apply, IN, const osg::UByteArray &, x, - Properties::VIRTUAL, - __void__apply__C5_UByteArray_R1, + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__ConstArrayVisitor_R1, "", ""); - I_Method1(void, apply, IN, const osg::UShortArray &, x, - Properties::VIRTUAL, - __void__apply__C5_UShortArray_R1, + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__unsigned_int__ValueVisitor_R1, "", ""); - I_Method1(void, apply, IN, const osg::UIntArray &, x, - Properties::VIRTUAL, - __void__apply__C5_UIntArray_R1, + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); - I_Method1(void, apply, IN, const osg::FloatArray &, x, - Properties::VIRTUAL, - __void__apply__C5_FloatArray_R1, + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::PURE_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Type__getType, "", ""); - I_Method1(void, apply, IN, const osg::Vec2Array &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec2Array_R1, + I_Method0(GLint, getDataSize, + Properties::NON_VIRTUAL, + __GLint__getDataSize, "", ""); - I_Method1(void, apply, IN, const osg::Vec3Array &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec3Array_R1, + I_Method0(GLenum, getDataType, + Properties::NON_VIRTUAL, + __GLenum__getDataType, "", ""); - I_Method1(void, apply, IN, const osg::Vec4Array &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4Array_R1, + I_Method0(const GLvoid *, getDataPointer, + Properties::PURE_VIRTUAL, + __C5_GLvoid_P1__getDataPointer, "", ""); - I_Method1(void, apply, IN, const osg::Vec4ubArray &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4ubArray_R1, + I_Method0(unsigned int, getTotalDataSize, + Properties::PURE_VIRTUAL, + __unsigned_int__getTotalDataSize, "", ""); - I_Method1(void, apply, IN, const osg::Vec2bArray &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec2bArray_R1, + I_Method0(unsigned int, getNumElements, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumElements, "", ""); - I_Method1(void, apply, IN, const osg::Vec3bArray &, x, + I_Method0(void, trim, Properties::VIRTUAL, - __void__apply__C5_Vec3bArray_R1, + __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, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, "", ""); - I_Method1(void, apply, IN, const osg::Vec4bArray &, x, + I_Method0(const char *, libraryName, Properties::VIRTUAL, - __void__apply__C5_Vec4bArray_R1, + __C5_char_P1__libraryName, "", ""); - I_Method1(void, apply, IN, const osg::Vec2sArray &, x, + I_Method0(const char *, className, Properties::VIRTUAL, - __void__apply__C5_Vec2sArray_R1, + __C5_char_P1__className, "", ""); - I_Method1(void, apply, IN, const osg::Vec3sArray &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec3sArray_R1, + I_Method1(void, accept, IN, osg::ArrayVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__ArrayVisitor_R1, "", ""); - I_Method1(void, apply, IN, const osg::Vec4sArray &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4sArray_R1, + I_Method1(void, accept, IN, osg::ConstArrayVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__ConstArrayVisitor_R1, "", ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__unsigned_int__ValueVisitor_R1, + "", + ""); + I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, x, + Properties::PURE_VIRTUAL, + __void__accept__unsigned_int__ConstValueVisitor_R1, + "", + ""); + I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::PURE_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(GLint, getDataSize, + Properties::NON_VIRTUAL, + __GLint__getDataSize, + "", + ""); + I_Method0(GLenum, getDataType, + Properties::NON_VIRTUAL, + __GLenum__getDataType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::PURE_VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::PURE_VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(unsigned int, getNumElements, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumElements, + "", + ""); + I_Method0(void, trim, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __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::ConstValueVisitor) - I_Constructor0(____ConstValueVisitor, - "", - ""); - I_Method1(void, apply, IN, const GLbyte &, x, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::IndexArray) + I_BaseType(osg::Array); + I_BaseType(osg::Array); + 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, Properties::VIRTUAL, - __void__apply__C5_GLbyte_R1, + __bool__isSameKindAs__C5_Object_P1, "", ""); - I_Method1(void, apply, IN, const GLshort &, x, - Properties::VIRTUAL, - __void__apply__C5_GLshort_R1, + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __unsigned_int__index__unsigned_int, "", ""); - I_Method1(void, apply, IN, const GLint &, x, + 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, Properties::VIRTUAL, - __void__apply__C5_GLint_R1, + __bool__isSameKindAs__C5_Object_P1, "", ""); - I_Method1(void, apply, IN, const GLushort &, x, - Properties::VIRTUAL, - __void__apply__C5_GLushort_R1, - "", - ""); - I_Method1(void, apply, IN, const GLubyte &, x, - Properties::VIRTUAL, - __void__apply__C5_GLubyte_R1, - "", - ""); - I_Method1(void, apply, IN, const GLuint &, x, - Properties::VIRTUAL, - __void__apply__C5_GLuint_R1, - "", - ""); - I_Method1(void, apply, IN, const GLfloat &, x, - Properties::VIRTUAL, - __void__apply__C5_GLfloat_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec4ub &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4ub_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec2 &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec2_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec3 &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec3_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec4 &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec2b &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec2b_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec3b &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec3b_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec4b &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4b_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec2s &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec2s_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec3s &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec3s_R1, - "", - ""); - I_Method1(void, apply, IN, const osg::Vec4s &, x, - Properties::VIRTUAL, - __void__apply__C5_Vec4s_R1, + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __unsigned_int__index__unsigned_int, "", ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::IndexArray) I_BaseType(osg::Array); + I_BaseType(osg::Array); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0, ____IndexArray__Type__GLint__GLenum, "", @@ -567,1464 +684,273 @@ BEGIN_VALUE_REFLECTOR(osg::ValueVisitor) __void__apply__Vec4s_R1, "", ""); + I_Constructor0(____ValueVisitor, + "", + ""); + I_Method1(void, apply, IN, GLbyte &, x, + Properties::VIRTUAL, + __void__apply__GLbyte_R1, + "", + ""); + I_Method1(void, apply, IN, GLshort &, x, + Properties::VIRTUAL, + __void__apply__GLshort_R1, + "", + ""); + I_Method1(void, apply, IN, GLint &, x, + Properties::VIRTUAL, + __void__apply__GLint_R1, + "", + ""); + I_Method1(void, apply, IN, GLushort &, x, + Properties::VIRTUAL, + __void__apply__GLushort_R1, + "", + ""); + I_Method1(void, apply, IN, GLubyte &, x, + Properties::VIRTUAL, + __void__apply__GLubyte_R1, + "", + ""); + I_Method1(void, apply, IN, GLuint &, x, + Properties::VIRTUAL, + __void__apply__GLuint_R1, + "", + ""); + I_Method1(void, apply, IN, GLfloat &, x, + Properties::VIRTUAL, + __void__apply__GLfloat_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2 &, x, + Properties::VIRTUAL, + __void__apply__Vec2_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3 &, x, + Properties::VIRTUAL, + __void__apply__Vec3_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4 &, x, + Properties::VIRTUAL, + __void__apply__Vec4_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4ub &, x, + Properties::VIRTUAL, + __void__apply__Vec4ub_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2b &, x, + Properties::VIRTUAL, + __void__apply__Vec2b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3b &, x, + Properties::VIRTUAL, + __void__apply__Vec3b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4b &, x, + Properties::VIRTUAL, + __void__apply__Vec4b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2s &, x, + Properties::VIRTUAL, + __void__apply__Vec2s_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3s &, x, + Properties::VIRTUAL, + __void__apply__Vec3s_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4s &, x, + Properties::VIRTUAL, + __void__apply__Vec4s_R1, + "", + ""); END_REFLECTOR -TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE >, osg::ByteArray); - -TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT >, osg::ShortArray); - -TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT >, osg::IntArray); - -TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE >, osg::UByteArray); - -TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT >, osg::UShortArray); - -TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT >, osg::UIntArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT >, osg::FloatArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT >, osg::Vec2Array); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT >, osg::Vec3Array); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT >, osg::Vec4Array); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE >, osg::Vec4ubArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT >, osg::Vec2sArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT >, osg::Vec3sArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT >, osg::Vec4sArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE >, osg::Vec2bArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE >, osg::Vec3bArray); - -TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE >, osg::Vec4bArray); - -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(____TemplateArray, +BEGIN_VALUE_REFLECTOR(osg::ValueVisitor) + I_Constructor0(____ValueVisitor, "", ""); - 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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, + I_Method1(void, apply, IN, GLbyte &, x, + Properties::VIRTUAL, + __void__apply__GLbyte_R1, + "", + ""); + I_Method1(void, apply, IN, GLshort &, x, + Properties::VIRTUAL, + __void__apply__GLshort_R1, + "", + ""); + I_Method1(void, apply, IN, GLint &, x, + Properties::VIRTUAL, + __void__apply__GLint_R1, + "", + ""); + I_Method1(void, apply, IN, GLushort &, x, + Properties::VIRTUAL, + __void__apply__GLushort_R1, + "", + ""); + I_Method1(void, apply, IN, GLubyte &, x, + Properties::VIRTUAL, + __void__apply__GLubyte_R1, + "", + ""); + I_Method1(void, apply, IN, GLuint &, x, + Properties::VIRTUAL, + __void__apply__GLuint_R1, + "", + ""); + I_Method1(void, apply, IN, GLfloat &, x, + Properties::VIRTUAL, + __void__apply__GLfloat_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2 &, x, + Properties::VIRTUAL, + __void__apply__Vec2_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3 &, x, + Properties::VIRTUAL, + __void__apply__Vec3_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4 &, x, + Properties::VIRTUAL, + __void__apply__Vec4_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4ub &, x, + Properties::VIRTUAL, + __void__apply__Vec4ub_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2b &, x, + Properties::VIRTUAL, + __void__apply__Vec2b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3b &, x, + Properties::VIRTUAL, + __void__apply__Vec3b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4b &, x, + Properties::VIRTUAL, + __void__apply__Vec4b_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2s &, x, + Properties::VIRTUAL, + __void__apply__Vec2s_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3s &, x, + Properties::VIRTUAL, + __void__apply__Vec3s_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4s &, x, + Properties::VIRTUAL, + __void__apply__Vec4s_R1, + "", + ""); + I_Constructor0(____ValueVisitor, "", ""); - I_Constructor2(IN, unsigned int, no, IN, GLfloat *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, + I_Method1(void, apply, IN, GLbyte &, x, Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec2 *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, + __void__apply__GLbyte_R1, "", ""); - I_Method0(unsigned int, getTotalDataSize, + I_Method1(void, apply, IN, GLshort &, x, Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, + __void__apply__GLshort_R1, "", ""); - I_Method0(unsigned int, getNumElements, + I_Method1(void, apply, IN, GLint &, x, Properties::VIRTUAL, - __unsigned_int__getNumElements, + __void__apply__GLint_R1, "", ""); - 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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec2b *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, + I_Method1(void, apply, IN, GLushort &, x, Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, + __void__apply__GLushort_R1, "", ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + I_Method1(void, apply, IN, GLubyte &, x, Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, + __void__apply__GLubyte_R1, "", ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + I_Method1(void, apply, IN, GLuint &, x, Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, + __void__apply__GLuint_R1, "", ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + I_Method1(void, apply, IN, GLfloat &, x, Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, + __void__apply__GLfloat_R1, "", ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + I_Method1(void, apply, IN, osg::Vec2 &, x, Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, + __void__apply__Vec2_R1, "", ""); - I_Method0(unsigned int, getTotalDataSize, + I_Method1(void, apply, IN, osg::Vec3 &, x, Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, + __void__apply__Vec3_R1, "", ""); - I_Method0(unsigned int, getNumElements, + I_Method1(void, apply, IN, osg::Vec4 &, x, Properties::VIRTUAL, - __unsigned_int__getNumElements, + __void__apply__Vec4_R1, "", ""); - 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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec2s *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, + I_Method1(void, apply, IN, osg::Vec4ub &, x, Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, + __void__apply__Vec4ub_R1, "", ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + I_Method1(void, apply, IN, osg::Vec2b &, x, Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, + __void__apply__Vec2b_R1, "", ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + I_Method1(void, apply, IN, osg::Vec3b &, x, Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, + __void__apply__Vec3b_R1, "", ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec3 *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec3b *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec3s *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4 *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4b *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4s *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, osg::Vec4ub *, ptr, - ____TemplateArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateIndexArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, GLbyte *, ptr, - ____TemplateIndexArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __unsigned_int__getNumElements, - "", - ""); - I_Method1(unsigned int, index, IN, unsigned int, pos, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateIndexArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, GLint *, ptr, - ____TemplateIndexArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __unsigned_int__getNumElements, - "", - ""); - I_Method1(unsigned int, index, IN, unsigned int, pos, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateIndexArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, GLshort *, ptr, - ____TemplateIndexArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __unsigned_int__getNumElements, - "", - ""); - I_Method1(unsigned int, index, IN, unsigned int, pos, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateIndexArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, GLubyte *, ptr, - ____TemplateIndexArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __unsigned_int__getNumElements, - "", - ""); - I_Method1(unsigned int, index, IN, unsigned int, pos, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateIndexArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, GLuint *, ptr, - ____TemplateIndexArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, - "", - ""); - I_Method0(unsigned int, getTotalDataSize, - Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, - "", - ""); - I_Method0(unsigned int, getNumElements, - Properties::VIRTUAL, - __unsigned_int__getNumElements, - "", - ""); - I_Method1(unsigned int, index, IN, unsigned int, pos, - Properties::VIRTUAL, - __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(____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, - Properties::NON_EXPLICIT, - ____TemplateIndexArray__unsigned_int, - "", - ""); - I_Constructor2(IN, unsigned int, no, IN, GLushort *, ptr, - ____TemplateIndexArray__unsigned_int__T_P1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__accept__ArrayVisitor_R1, - "", - ""); - I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, - Properties::VIRTUAL, - __void__accept__ConstArrayVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ValueVisitor_R1, - "", - ""); - I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, - Properties::VIRTUAL, - __void__accept__unsigned_int__ConstValueVisitor_R1, - "", - ""); - I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, + I_Method1(void, apply, IN, osg::Vec4b &, x, Properties::VIRTUAL, - __C5_GLvoid_P1__getDataPointer, + __void__apply__Vec4b_R1, "", ""); - I_Method0(unsigned int, getTotalDataSize, + I_Method1(void, apply, IN, osg::Vec2s &, x, Properties::VIRTUAL, - __unsigned_int__getTotalDataSize, + __void__apply__Vec2s_R1, "", ""); - I_Method0(unsigned int, getNumElements, + I_Method1(void, apply, IN, osg::Vec3s &, x, Properties::VIRTUAL, - __unsigned_int__getNumElements, + __void__apply__Vec3s_R1, "", ""); - I_Method1(unsigned int, index, IN, unsigned int, pos, + I_Method1(void, apply, IN, osg::Vec4s &, x, Properties::VIRTUAL, - __unsigned_int__index__unsigned_int, + __void__apply__Vec4s_R1, "", ""); - 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/BufferObject.cpp b/src/osgWrappers/osg/BufferObject.cpp index fb268212d..9d40d3561 100644 --- a/src/osgWrappers/osg/BufferObject.cpp +++ b/src/osgWrappers/osg/BufferObject.cpp @@ -11,10 +11,6 @@ #include #include -#include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -24,105 +20,94 @@ #undef OUT #endif -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferObject) - I_BaseType(osg::Object); - 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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__isBufferObjectSupported__unsigned_int, - "", - ""); - I_Method1(bool, isPBOSupported, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __bool__isPBOSupported__unsigned_int, - "", - ""); - I_Method1(GLuint &, buffer, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __GLuint_R1__buffer__unsigned_int, - "", - ""); - I_Method1(void, bindBuffer, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__bindBuffer__unsigned_int, - "", - ""); - I_Method1(void, unbindBuffer, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__unbindBuffer__unsigned_int, - "", - ""); - I_Method1(bool, needsCompile, IN, unsigned int, contextID, - Properties::PURE_VIRTUAL, - __bool__needsCompile__unsigned_int, - "", - ""); - I_Method1(void, compileBuffer, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__compileBuffer__State_R1, - "", - ""); - I_Method1(void, releaseBuffer, IN, osg::State *, state, - Properties::NON_VIRTUAL, - __void__releaseBuffer__State_P1, - "", - ""); - I_Method3(void, flushDeletedBufferObjects, IN, unsigned int, contextID, IN, double, x, IN, double &, availableTime, - Properties::NON_VIRTUAL, - __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(____BufferEntry, - "", - ""); - I_Constructor1(IN, const osg::BufferObject::BufferEntry &, be, - Properties::NON_EXPLICIT, - ____BufferEntry__C5_BufferEntry_R1, - "", - ""); - I_PublicMemberProperty(osg::buffered_value< unsigned int >, modifiedCount); - I_PublicMemberProperty(unsigned int, dataSize); - I_PublicMemberProperty(unsigned int, offset); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osg::BufferObject::Extensions) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method0(bool, isBufferObjectSupported, + Properties::NON_VIRTUAL, + __bool__isBufferObjectSupported, + "", + ""); + I_Method0(bool, isPBOSupported, + Properties::NON_VIRTUAL, + __bool__isPBOSupported, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); I_Constructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____Extensions__unsigned_int, @@ -210,78 +195,178 @@ BEGIN_OBJECT_REFLECTOR(osg::BufferObject::Extensions) ""); 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, - Properties::NON_EXPLICIT, - ____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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, +BEGIN_OBJECT_REFLECTOR(osg::BufferObject::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BufferObject::Extensions &, rhs, Properties::NON_VIRTUAL, - __void__setImage__osg_Image_P1, + __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); - I_Method0(osg::Image *, getImage, + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, Properties::NON_VIRTUAL, - __Image_P1__getImage, + __void__setupGLExtenions__unsigned_int, "", ""); - I_Method0(const osg::Image *, getImage, + I_Method0(bool, isBufferObjectSupported, Properties::NON_VIRTUAL, - __C5_Image_P1__getImage, + __bool__isBufferObjectSupported, "", ""); - I_Method0(unsigned int, offset, + I_Method0(bool, isPBOSupported, Properties::NON_VIRTUAL, - __unsigned_int__offset, + __bool__isPBOSupported, "", ""); - I_Method1(bool, needsCompile, IN, unsigned int, contextID, - Properties::VIRTUAL, - __bool__needsCompile__unsigned_int, + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glGenBuffers__GLsizei__GLuint_P1, "", ""); - I_Method1(void, compileBuffer, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileBuffer__State_R1, + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method0(bool, isBufferObjectSupported, + Properties::NON_VIRTUAL, + __bool__isBufferObjectSupported, + "", + ""); + I_Method0(bool, isPBOSupported, + Properties::NON_VIRTUAL, + __bool__isPBOSupported, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, "", ""); - 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/Camera.cpp b/src/osgWrappers/osg/Camera.cpp index b965ae051..12f4a10c5 100644 --- a/src/osgWrappers/osg/Camera.cpp +++ b/src/osgWrappers/osg/Camera.cpp @@ -10,24 +10,25 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -73,6 +74,8 @@ BEGIN_ENUM_REFLECTOR(osg::Camera::BufferComponent) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Camera) + I_BaseType(osg::Transform); + I_BaseType(osg::CullSettings); I_BaseType(osg::Transform); I_BaseType(osg::CullSettings); I_Constructor0(____Camera, @@ -85,32 +88,439 @@ BEGIN_OBJECT_REFLECTOR(osg::Camera) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setView__View_P1, + "Set the View that this Camera is part of. ", + ""); + I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, + __View_P1__getView, + "Get the View that this Camera is part of. ", + ""); + I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, + __C5_View_P1__getView, + "Get the const View that this Camera is part of. ", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the const Stats object. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_Vec4_R1, + "Sets the clear color. ", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getClearColor, + "Returns the clear color. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, colorMask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setColorMask__bool__bool__bool__bool, + "Set the color mask of the camera to specified values. ", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __C5_ColorMask_P1__getColorMask, + "Get the const ColorMask. ", + ""); + I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __ColorMask_P1__getColorMask, + "Get the ColorMask. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setViewport__int__int__int__int, + "Set the viewport of the camera to specified dimensions. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setTransformOrder, IN, osg::Camera::TransformOrder, order, + Properties::NON_VIRTUAL, + __void__setTransformOrder__TransformOrder, + "Set the transformation order for world-to-local and local-to-world transformation. ", + ""); + I_Method0(osg::Camera::TransformOrder, getTransformOrder, + Properties::NON_VIRTUAL, + __TransformOrder__getTransformOrder, + "Get the transformation order. ", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Matrixd__getInverseViewMatrix, + "Get the inverse view matrix. ", + ""); + I_MethodWithDefaults2(void, setRenderOrder, IN, osg::Camera::RenderOrder, order, , IN, int, orderNum, 0, + Properties::NON_VIRTUAL, + __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::Camera::RenderOrder, getRenderOrder, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getRenderOrderNum, + "Get the rendering order number of this camera relative to any sibling cameras in this subgraph. ", + ""); + I_Method0(bool, isRenderToTextureCamera, + Properties::NON_VIRTUAL, + __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::Camera::RenderTargetImplementation, impl, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__RenderTargetImplementation, + "Set the render target. ", + ""); + I_Method2(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl, IN, osg::Camera::RenderTargetImplementation, fallback, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__RenderTargetImplementation__RenderTargetImplementation, + "Set the render target and fall-back that's used if the former isn't available. ", + ""); + I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetImplementation, + Properties::NON_VIRTUAL, + __RenderTargetImplementation__getRenderTargetImplementation, + "Get the render target. ", + ""); + I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetFallback, + Properties::NON_VIRTUAL, + __RenderTargetImplementation__getRenderTargetFallback, + "Get the render target fallback. ", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, GLenum, internalFormat, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__GLenum, + "", + ""); + I_MethodWithDefaults5(void, attach, IN, osg::Camera::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Image_P1, + "", + ""); + I_Method1(void, detach, IN, osg::Camera::BufferComponent, buffer, + Properties::NON_VIRTUAL, + __void__detach__BufferComponent, + "", + ""); + I_Method0(osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(const osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, + __C5_BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(void, createCameraThread, + Properties::NON_VIRTUAL, + __void__createCameraThread, + "Create a operation thread for this camera. ", + ""); + I_Method1(void, setCameraThread, IN, osg::OperationsThread *, gt, + Properties::NON_VIRTUAL, + __void__setCameraThread__OperationsThread_P1, + "Assign a operation thread to the camera. ", + ""); + I_Method0(osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, + __OperationsThread_P1__getCameraThread, + "Get the operation thread assigned to this camera. ", + ""); + I_Method0(const osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, + __C5_OperationsThread_P1__getCameraThread, + "Get the const operation thread assigned to this camera. ", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getGraphicsContext, + "Get the GraphicsContext. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const GraphicsContext. ", + ""); + I_Method2(void, setRenderingCache, IN, unsigned int, contextID, IN, osg::Object *, rc, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, + __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::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getPostDrawCallback, + "Get the post draw callback. ", + ""); + I_Method0(const osg::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getPostDrawCallback, + "Get the const post draw callback. ", + ""); + I_Method0(OpenThreads::Mutex *, getDataChangeMutex, + Properties::NON_VIRTUAL, + __OpenThreads_Mutex_P1__getDataChangeMutex, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_Constructor0(____Camera, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Camera &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Camera__C5_Camera_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setView, IN, osg::View *, view, Properties::NON_VIRTUAL, @@ -551,68 +961,926 @@ BEGIN_OBJECT_REFLECTOR(osg::Camera) __void__setViewport__osg_Viewport_P1); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::Camera::Attachment) - I_Constructor0(____Attachment, - "", - ""); - I_Method0(int, width, - Properties::NON_VIRTUAL, - __int__width, - "", - ""); - I_Method0(int, height, - Properties::NON_VIRTUAL, - __int__height, - "", - ""); - I_Method0(int, depth, - Properties::NON_VIRTUAL, - __int__depth, - "", - ""); - I_PublicMemberProperty(GLenum, _internalFormat); - I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); - I_PublicMemberProperty(osg::ref_ptr< osg::Texture >, _texture); - I_PublicMemberProperty(unsigned int, _level); - I_PublicMemberProperty(unsigned int, _face); - I_PublicMemberProperty(bool, _mipMapGeneration); +TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >, osg::Camera::BufferAttachmentMap); + +BEGIN_ENUM_REFLECTOR(osg::Camera::TransformOrder) + I_EnumLabel(osg::Camera::PRE_MULTIPLY); + I_EnumLabel(osg::Camera::POST_MULTIPLY); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Camera::DrawCallback) - I_VirtualBaseType(osg::Object); - I_Constructor0(____DrawCallback, - "", - ""); - I_Constructor2(IN, const osg::Camera::DrawCallback &, x, IN, const osg::CopyOp &, x, - ____DrawCallback__C5_DrawCallback_R1__C5_CopyOp_R1, +BEGIN_ENUM_REFLECTOR(osg::Camera::RenderOrder) + I_EnumLabel(osg::Camera::PRE_RENDER); + I_EnumLabel(osg::Camera::NESTED_RENDER); + I_EnumLabel(osg::Camera::POST_RENDER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::RenderTargetImplementation) + I_EnumLabel(osg::Camera::FRAME_BUFFER_OBJECT); + I_EnumLabel(osg::Camera::PIXEL_BUFFER_RTT); + I_EnumLabel(osg::Camera::PIXEL_BUFFER); + I_EnumLabel(osg::Camera::FRAME_BUFFER); + I_EnumLabel(osg::Camera::SEPERATE_WINDOW); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::BufferComponent) + I_EnumLabel(osg::Camera::DEPTH_BUFFER); + I_EnumLabel(osg::Camera::STENCIL_BUFFER); + I_EnumLabel(osg::Camera::COLOR_BUFFER); + I_EnumLabel(osg::Camera::COLOR_BUFFER0); + I_EnumLabel(osg::Camera::COLOR_BUFFER1); + I_EnumLabel(osg::Camera::COLOR_BUFFER2); + I_EnumLabel(osg::Camera::COLOR_BUFFER3); + I_EnumLabel(osg::Camera::COLOR_BUFFER4); + I_EnumLabel(osg::Camera::COLOR_BUFFER5); + I_EnumLabel(osg::Camera::COLOR_BUFFER6); + I_EnumLabel(osg::Camera::COLOR_BUFFER7); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Camera) + I_BaseType(osg::Transform); + I_BaseType(osg::CullSettings); + I_BaseType(osg::Transform); + I_BaseType(osg::CullSettings); + I_Constructor0(____Camera, "", ""); + I_ConstructorWithDefaults2(IN, const osg::Camera &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Camera__C5_Camera_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, + __void__setView__View_P1, + "Set the View that this Camera is part of. ", + ""); + I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, + __View_P1__getView, + "Get the View that this Camera is part of. ", + ""); + I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, + __C5_View_P1__getView, + "Get the const View that this Camera is part of. ", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the const Stats object. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_Vec4_R1, + "Sets the clear color. ", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getClearColor, + "Returns the clear color. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, colorMask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setColorMask__bool__bool__bool__bool, + "Set the color mask of the camera to specified values. ", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __C5_ColorMask_P1__getColorMask, + "Get the const ColorMask. ", + ""); + I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __ColorMask_P1__getColorMask, + "Get the ColorMask. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setViewport__int__int__int__int, + "Set the viewport of the camera to specified dimensions. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setTransformOrder, IN, osg::Camera::TransformOrder, order, + Properties::NON_VIRTUAL, + __void__setTransformOrder__TransformOrder, + "Set the transformation order for world-to-local and local-to-world transformation. ", + ""); + I_Method0(osg::Camera::TransformOrder, getTransformOrder, + Properties::NON_VIRTUAL, + __TransformOrder__getTransformOrder, + "Get the transformation order. ", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Matrixd__getInverseViewMatrix, + "Get the inverse view matrix. ", + ""); + I_MethodWithDefaults2(void, setRenderOrder, IN, osg::Camera::RenderOrder, order, , IN, int, orderNum, 0, + Properties::NON_VIRTUAL, + __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::Camera::RenderOrder, getRenderOrder, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getRenderOrderNum, + "Get the rendering order number of this camera relative to any sibling cameras in this subgraph. ", + ""); + I_Method0(bool, isRenderToTextureCamera, + Properties::NON_VIRTUAL, + __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::Camera::RenderTargetImplementation, impl, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__RenderTargetImplementation, + "Set the render target. ", + ""); + I_Method2(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl, IN, osg::Camera::RenderTargetImplementation, fallback, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__RenderTargetImplementation__RenderTargetImplementation, + "Set the render target and fall-back that's used if the former isn't available. ", + ""); + I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetImplementation, + Properties::NON_VIRTUAL, + __RenderTargetImplementation__getRenderTargetImplementation, + "Get the render target. ", + ""); + I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetFallback, + Properties::NON_VIRTUAL, + __RenderTargetImplementation__getRenderTargetFallback, + "Get the render target fallback. ", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, GLenum, internalFormat, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__GLenum, + "", + ""); + I_MethodWithDefaults5(void, attach, IN, osg::Camera::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Image_P1, + "", + ""); + I_Method1(void, detach, IN, osg::Camera::BufferComponent, buffer, + Properties::NON_VIRTUAL, + __void__detach__BufferComponent, + "", + ""); + I_Method0(osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(const osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, + __C5_BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(void, createCameraThread, + Properties::NON_VIRTUAL, + __void__createCameraThread, + "Create a operation thread for this camera. ", + ""); + I_Method1(void, setCameraThread, IN, osg::OperationsThread *, gt, + Properties::NON_VIRTUAL, + __void__setCameraThread__OperationsThread_P1, + "Assign a operation thread to the camera. ", + ""); + I_Method0(osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, + __OperationsThread_P1__getCameraThread, + "Get the operation thread assigned to this camera. ", + ""); + I_Method0(const osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, + __C5_OperationsThread_P1__getCameraThread, + "Get the const operation thread assigned to this camera. ", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getGraphicsContext, + "Get the GraphicsContext. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const GraphicsContext. ", + ""); + I_Method2(void, setRenderingCache, IN, unsigned int, contextID, IN, osg::Object *, rc, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, + __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::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getPostDrawCallback, + "Get the post draw callback. ", + ""); + I_Method0(const osg::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getPostDrawCallback, + "Get the const post draw callback. ", + ""); + I_Method0(OpenThreads::Mutex *, getDataChangeMutex, + Properties::NON_VIRTUAL, + __OpenThreads_Mutex_P1__getDataChangeMutex, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_Constructor0(____Camera, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Camera &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Camera__C5_Camera_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, + __void__setView__View_P1, + "Set the View that this Camera is part of. ", + ""); + I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, + __View_P1__getView, + "Get the View that this Camera is part of. ", + ""); + I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, + __C5_View_P1__getView, + "Get the const View that this Camera is part of. ", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the const Stats object. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_Vec4_R1, + "Sets the clear color. ", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getClearColor, + "Returns the clear color. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, colorMask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setColorMask__bool__bool__bool__bool, + "Set the color mask of the camera to specified values. ", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __C5_ColorMask_P1__getColorMask, + "Get the const ColorMask. ", + ""); + I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __ColorMask_P1__getColorMask, + "Get the ColorMask. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setViewport__int__int__int__int, + "Set the viewport of the camera to specified dimensions. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setTransformOrder, IN, osg::Camera::TransformOrder, order, + Properties::NON_VIRTUAL, + __void__setTransformOrder__TransformOrder, + "Set the transformation order for world-to-local and local-to-world transformation. ", + ""); + I_Method0(osg::Camera::TransformOrder, getTransformOrder, + Properties::NON_VIRTUAL, + __TransformOrder__getTransformOrder, + "Get the transformation order. ", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Matrixd__getInverseViewMatrix, + "Get the inverse view matrix. ", + ""); + I_MethodWithDefaults2(void, setRenderOrder, IN, osg::Camera::RenderOrder, order, , IN, int, orderNum, 0, + Properties::NON_VIRTUAL, + __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::Camera::RenderOrder, getRenderOrder, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getRenderOrderNum, + "Get the rendering order number of this camera relative to any sibling cameras in this subgraph. ", + ""); + I_Method0(bool, isRenderToTextureCamera, + Properties::NON_VIRTUAL, + __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::Camera::RenderTargetImplementation, impl, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__RenderTargetImplementation, + "Set the render target. ", + ""); + I_Method2(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl, IN, osg::Camera::RenderTargetImplementation, fallback, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__RenderTargetImplementation__RenderTargetImplementation, + "Set the render target and fall-back that's used if the former isn't available. ", + ""); + I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetImplementation, + Properties::NON_VIRTUAL, + __RenderTargetImplementation__getRenderTargetImplementation, + "Get the render target. ", + ""); + I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetFallback, + Properties::NON_VIRTUAL, + __RenderTargetImplementation__getRenderTargetFallback, + "Get the render target fallback. ", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, GLenum, internalFormat, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__GLenum, + "", + ""); + I_MethodWithDefaults5(void, attach, IN, osg::Camera::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Image_P1, + "", + ""); + I_Method1(void, detach, IN, osg::Camera::BufferComponent, buffer, + Properties::NON_VIRTUAL, + __void__detach__BufferComponent, + "", + ""); + I_Method0(osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(const osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, + __C5_BufferAttachmentMap_R1__getBufferAttachmentMap, + "Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", + ""); + I_Method0(void, createCameraThread, + Properties::NON_VIRTUAL, + __void__createCameraThread, + "Create a operation thread for this camera. ", + ""); + I_Method1(void, setCameraThread, IN, osg::OperationsThread *, gt, + Properties::NON_VIRTUAL, + __void__setCameraThread__OperationsThread_P1, + "Assign a operation thread to the camera. ", + ""); + I_Method0(osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, + __OperationsThread_P1__getCameraThread, + "Get the operation thread assigned to this camera. ", + ""); + I_Method0(const osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, + __C5_OperationsThread_P1__getCameraThread, + "Get the const operation thread assigned to this camera. ", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getGraphicsContext, + "Get the GraphicsContext. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const GraphicsContext. ", + ""); + I_Method2(void, setRenderingCache, IN, unsigned int, contextID, IN, osg::Object *, rc, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, + __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::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getPostDrawCallback, + "Get the post draw callback. ", + ""); + I_Method0(const osg::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getPostDrawCallback, + "Get the const post draw callback. ", + ""); + I_Method0(OpenThreads::Mutex *, getDataChangeMutex, + Properties::NON_VIRTUAL, + __OpenThreads_Mutex_P1__getDataChangeMutex, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "Transform method that must be defined to provide generic interface for scene graph traversals. ", + ""); + I_SimpleProperty(osg::Camera::BufferAttachmentMap &, BufferAttachmentMap, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + 0); + I_SimpleProperty(osg::OperationsThread *, CameraThread, + __OperationsThread_P1__getCameraThread, + __void__setCameraThread__OperationsThread_P1); + 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::Camera::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::Camera::RenderOrder, RenderOrder, + __RenderOrder__getRenderOrder, + 0); + I_SimpleProperty(int, RenderOrderNum, + __int__getRenderOrderNum, + 0); + I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetFallback, + __RenderTargetImplementation__getRenderTargetFallback, + 0); + I_SimpleProperty(osg::Camera::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::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); + I_SimpleProperty(osg::Camera::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 -STD_MAP_REFLECTOR(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >); - diff --git a/src/osgWrappers/osg/DrawPixels.cpp b/src/osgWrappers/osg/DrawPixels.cpp index e45557ac8..59c90db60 100644 --- a/src/osgWrappers/osg/DrawPixels.cpp +++ b/src/osgWrappers/osg/DrawPixels.cpp @@ -10,13 +10,13 @@ #include #include -#include -#include +#include +#include +#include +#include +#include #include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) + I_BaseType(osg::Drawable); I_BaseType(osg::Drawable); I_Constructor0(____DrawPixels, "", @@ -38,13 +39,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -53,13 +54,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, @@ -113,12 +114,302 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) I_Method1(void, drawImplementation, IN, osg::State &, state, Properties::VIRTUAL, __void__drawImplementation__State_R1, - "Deprecated. ", + "", ""); I_Method0(osg::BoundingBox, computeBound, Properties::VIRTUAL, __BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", + "", + ""); + 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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getPosition, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setUseSubImage, IN, bool, useSubImage, + Properties::NON_VIRTUAL, + __void__setUseSubImage__bool, + "", + ""); + I_Method0(bool, getUseSubImage, + Properties::NON_VIRTUAL, + __bool__getUseSubImage, + "", + ""); + I_Method4(void, setSubImageDimensions, IN, unsigned int, offsetX, IN, unsigned int, offsetY, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getSubImageDimensions__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__State_R1, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "", + ""); + 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 + +BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) + I_BaseType(osg::Drawable); + I_BaseType(osg::Drawable); + 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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getPosition, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setUseSubImage, IN, bool, useSubImage, + Properties::NON_VIRTUAL, + __void__setUseSubImage__bool, + "", + ""); + I_Method0(bool, getUseSubImage, + Properties::NON_VIRTUAL, + __bool__getUseSubImage, + "", + ""); + I_Method4(void, setSubImageDimensions, IN, unsigned int, offsetX, IN, unsigned int, offsetY, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getSubImageDimensions__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__State_R1, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getPosition, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setUseSubImage, IN, bool, useSubImage, + Properties::NON_VIRTUAL, + __void__setUseSubImage__bool, + "", + ""); + I_Method0(bool, getUseSubImage, + Properties::NON_VIRTUAL, + __bool__getUseSubImage, + "", + ""); + I_Method4(void, setSubImageDimensions, IN, unsigned int, offsetX, IN, unsigned int, offsetY, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getSubImageDimensions__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__State_R1, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "", ""); I_SimpleProperty(osg::Image *, Image, __osg_Image_P1__getImage, diff --git a/src/osgWrappers/osg/Drawable.cpp b/src/osgWrappers/osg/Drawable.cpp index b3c68f8e8..8047c9c0d 100644 --- a/src/osgWrappers/osg/Drawable.cpp +++ b/src/osgWrappers/osg/Drawable.cpp @@ -10,22 +10,17 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -35,551 +30,234 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::Node * >, osg::Drawable::ParentList); - -TYPE_NAME_ALIAS(unsigned int, osg::Drawable::AttributeType); - -BEGIN_ENUM_REFLECTOR(osg::Drawable::AttributeTypes) - I_EnumLabel(osg::Drawable::VERTICES); - I_EnumLabel(osg::Drawable::WEIGHTS); - I_EnumLabel(osg::Drawable::NORMALS); - I_EnumLabel(osg::Drawable::COLORS); - I_EnumLabel(osg::Drawable::SECONDARY_COLORS); - I_EnumLabel(osg::Drawable::FOG_COORDS); - I_EnumLabel(osg::Drawable::ATTRIBUTE_6); - I_EnumLabel(osg::Drawable::ATTRIBUTE_7); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_0); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_1); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_2); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_3); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_4); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_5); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_6); - I_EnumLabel(osg::Drawable::TEXTURE_COORDS_7); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable) - I_BaseType(osg::Object); - 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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(osg::Geometry *, asGeometry, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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(void, computeDataVariance, - Properties::VIRTUAL, - __void__computeDataVariance, - "Compute the DataVariance based on an assestment of callback etc. ", - ""); - I_Method0(const osg::Drawable::ParentList &, getParents, - Properties::NON_VIRTUAL, - __C5_ParentList_R1__getParents, - "Get the parent list of drawable. ", - ""); - I_Method0(osg::Drawable::ParentList, getParents, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __StateSet_P1__getStateSet, - "Get the attached StateSet. ", - ""); - I_Method0(const osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __C5_StateSet_P1__getStateSet, - "Get the attached const StateSet. ", - ""); - I_Method0(osg::StateSet *, getOrCreateStateSet, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __C5_BoundingBox_R1__getInitialBound, - "Set the initial bounding volume to use when computing the overall bounding volume. ", - ""); - I_Method0(void, dirtyBound, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::VIRTUAL, - __BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", - ""); - I_Method1(void, setComputeBoundingBoxCallback, IN, osg::Drawable::ComputeBoundingBoxCallback *, callback, - Properties::NON_VIRTUAL, - __void__setComputeBoundingBoxCallback__ComputeBoundingBoxCallback_P1, - "Set the compute bound callback to override the default computeBound. ", - ""); - I_Method0(osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback, - Properties::NON_VIRTUAL, - __ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, - "Get the compute bound callback. ", - ""); - I_Method0(const osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback, - Properties::NON_VIRTUAL, - __C5_ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, - "Get the const compute bound callback. ", - ""); - I_Method1(void, setShape, IN, osg::Shape *, shape, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __Shape_P1__getShape, - "Get the Shape of the Drawable. ", - ""); - I_Method0(const osg::Shape *, getShape, - Properties::NON_VIRTUAL, - __C5_Shape_P1__getShape, - "Get the const Shape of the const Drawable. ", - ""); - I_Method1(void, setSupportsDisplayList, IN, bool, flag, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__getSupportsDisplayList, - "Get whether display lists are supported for this drawable instance. ", - ""); - I_Method1(void, setUseDisplayList, IN, bool, flag, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__getUseDisplayList, - "Return whether OpenGL display lists are being used for rendering. ", - ""); - I_Method1(GLuint &, getDisplayList, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __GLuint_R1__getDisplayList__unsigned_int, - "Return OpenGL display list for specified contextID. ", - ""); - I_Method1(void, setUseVertexBufferObjects, IN, bool, flag, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__getUseVertexBufferObjects, - "Return whether OpenGL vertex buffer objects should be used when supported by OpenGL driver. ", - ""); - I_Method0(void, dirtyDisplayList, - Properties::NON_VIRTUAL, - __void__dirtyDisplayList, - "Force a recompile on next draw() of any OpenGL display list associated with this geoset. ", - ""); - I_Method0(unsigned int, getGLObjectSizeHint, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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::RenderInfo &, renderInfo, - Properties::VIRTUAL, - __void__compileGLObjects__RenderInfo_R1, - "Immediately compile this Drawable into an OpenGL Display List. ", - "Operation is ignored if _useDisplayList is false. "); - I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, - Properties::VIRTUAL, - __void__setThreadSafeRefUnref__bool, - "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __UpdateCallback_P1__getUpdateCallback, - "Get the non const UpdateCallback. ", - ""); - I_Method0(const osg::Drawable::UpdateCallback *, getUpdateCallback, - Properties::NON_VIRTUAL, - __C5_UpdateCallback_P1__getUpdateCallback, - "Get the const UpdateCallback. ", - ""); - I_Method0(bool, requiresUpdateTraversal, - Properties::NON_VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __EventCallback_P1__getEventCallback, - "Get the non const EventCallback. ", - ""); - I_Method0(const osg::Drawable::EventCallback *, getEventCallback, - Properties::NON_VIRTUAL, - __C5_EventCallback_P1__getEventCallback, - "Get the const EventCallback. ", - ""); - I_Method0(bool, requiresEventTraversal, - Properties::NON_VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __CullCallback_P1__getCullCallback, - "Get the non const CullCallback. ", - ""); - I_Method0(const osg::Drawable::CullCallback *, getCullCallback, - Properties::NON_VIRTUAL, - __C5_CullCallback_P1__getCullCallback, - "Get the const CullCallback. ", - ""); - I_Method1(void, setDrawCallback, IN, osg::Drawable::DrawCallback *, dc, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __DrawCallback_P1__getDrawCallback, - "Get the non const DrawCallback. ", - ""); - I_Method0(const osg::Drawable::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __C5_DrawCallback_P1__getDrawCallback, - "Get the const DrawCallback. ", - ""); - I_Method1(void, drawImplementation, IN, osg::State &, x, - Properties::VIRTUAL, - __void__drawImplementation__State_R1, - "Deprecated. ", - ""); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__supports__C5_AttributeFunctor_R1, - "Return true if the Drawable subclass supports accept(AttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__supports__C5_ConstAttributeFunctor_R1, - "Return true if the Drawable subclass supports accept(ConstAttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__supports__C5_PrimitiveFunctor_R1, - "Return true if the Drawable subclass supports accept(PrimitiveFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__supports__C5_PrimitiveIndexFunctor_R1, - "Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x, - Properties::VIRTUAL, - __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(bool, ThreadSafeRefUnref, - 0, - __void__setThreadSafeRefUnref__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(____AttributeFunctor, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLbyte_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLshort *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLshort *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLshort_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLint *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLint *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLint_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLubyte_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLushort *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLushort *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLushort_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLuint *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLuint *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLuint_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, float *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, float *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__float_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec2_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec3_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec4_P1, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4ub_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLshort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__float_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec4ub_P1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) - I_BaseType(osg::Object); - I_Constructor0(____ComputeBoundingBoxCallback, +BEGIN_VALUE_REFLECTOR(osg::Drawable::AttributeFunctor) + I_Constructor0(____AttributeFunctor, "", ""); - 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, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, + __void__apply__AttributeType__unsigned__GLbyte_P1, "", ""); - I_Method0(const char *, libraryName, + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLshort *, x, Properties::VIRTUAL, - __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, + __void__apply__AttributeType__unsigned__GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLint *, x, Properties::VIRTUAL, - __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, + __void__apply__AttributeType__unsigned__GLint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, Properties::VIRTUAL, - __BoundingBox__computeBound__C5_osg_Drawable_R1, + __void__apply__AttributeType__unsigned__GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__float_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4ub_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLshort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__float_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4ub_P1, "", ""); END_REFLECTOR @@ -588,57 +266,228 @@ BEGIN_VALUE_REFLECTOR(osg::Drawable::ConstAttributeFunctor) I_Constructor0(____ConstAttributeFunctor, "", ""); - I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLint *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const float *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x, Properties::VIRTUAL, __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, + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec4ub_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_float_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec4ub_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Drawable::ConstAttributeFunctor) + I_Constructor0(____ConstAttributeFunctor, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_float_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec4ub_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_float_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__C5_unsigned__C5_Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x, Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_Vec4ub_P1, "", @@ -646,6 +495,7 @@ BEGIN_VALUE_REFLECTOR(osg::Drawable::ConstAttributeFunctor) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) + I_VirtualBaseType(osg::Object); I_VirtualBaseType(osg::Object); I_Constructor0(____CullCallback, "", @@ -657,13 +507,13 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -672,13 +522,144 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_RenderInfo_P1, + "do customized cull code, return true if drawable should be culled. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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::CullCallback) + I_VirtualBaseType(osg::Object); + I_VirtualBaseType(osg::Object); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_RenderInfo_P1, + "do customized cull code, return true if drawable should be culled. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, Properties::VIRTUAL, __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_State_P1, @@ -692,6 +673,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) + I_VirtualBaseType(osg::Object); I_VirtualBaseType(osg::Object); I_Constructor0(____DrawCallback, "", @@ -703,13 +685,13 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -718,13 +700,55 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1__C5_osg_Drawable_P1, + "Deprecated. ", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, const osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__C5_osg_Drawable_P1, + "do customized draw code. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method2(void, drawImplementation, IN, osg::State &, x, IN, const osg::Drawable *, x, Properties::VIRTUAL, __void__drawImplementation__osg_State_R1__C5_osg_Drawable_P1, @@ -737,25 +761,26 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) +BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) I_VirtualBaseType(osg::Object); - I_Constructor0(____EventCallback, + I_VirtualBaseType(osg::Object); + I_Constructor0(____DrawCallback, "", ""); - I_Constructor2(IN, const osg::Drawable::EventCallback &, x, IN, const osg::CopyOp &, x, - ____EventCallback__C5_EventCallback_R1__C5_CopyOp_R1, + 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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -764,22 +789,365 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::State &, x, IN, const osg::Drawable *, x, Properties::VIRTUAL, - __void__event__osg_NodeVisitor_P1__osg_Drawable_P1, - "do customized Event code. ", + __void__drawImplementation__osg_State_R1__C5_osg_Drawable_P1, + "Deprecated. ", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, const osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__C5_osg_Drawable_P1, + "do customized draw code. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::State &, x, IN, const osg::Drawable *, x, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1__C5_osg_Drawable_P1, + "Deprecated. ", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, const osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__C5_osg_Drawable_P1, + "do customized draw code. ", ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Drawable::Extensions) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, + __bool__isVertexProgramSupported, + "", + ""); + I_Method1(void, setSecondaryColorSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSecondaryColorSupported__bool, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method1(void, setFogCoordSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFogCoordSupported__bool, + "", + ""); + I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method1(void, setMultiTexSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexSupported, + "", + ""); + I_Method1(void, setOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isOcclusionQuerySupported, + Properties::NON_VIRTUAL, + __bool__isOcclusionQuerySupported, + "", + ""); + I_Method1(void, setARBOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setARBOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isARBOcclusionQuerySupported, + Properties::NON_VIRTUAL, + __bool__isARBOcclusionQuerySupported, + "", + ""); + I_Method1(void, setTimerQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTimerQuerySupported__bool, + "", + ""); + I_Method0(bool, isTimerQuerySupported, + Properties::NON_VIRTUAL, + __bool__isTimerQuerySupported, + "", + ""); + I_Method1(void, glSecondaryColor3ubv, IN, const GLubyte *, coord, + Properties::NON_VIRTUAL, + __void__glSecondaryColor3ubv__C5_GLubyte_P1, + "", + ""); + I_Method1(void, glSecondaryColor3fv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glSecondaryColor3fv__C5_GLfloat_P1, + "", + ""); + I_Method1(void, glFogCoordfv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glFogCoordfv__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord1f, IN, GLenum, target, IN, GLfloat, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord1f__GLenum__GLfloat, + "", + ""); + I_Method2(void, glMultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord2fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord3fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord4fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib1s, IN, unsigned int, index, IN, GLshort, s, + Properties::NON_VIRTUAL, + __void__glVertexAttrib1s__unsigned_int__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib1f, IN, unsigned int, index, IN, GLfloat, f, + Properties::NON_VIRTUAL, + __void__glVertexAttrib1f__unsigned_int__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib2fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib2fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib3fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib3fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4ubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4ubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4Nubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); + I_Method2(void, glGenOcclusionQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glGenOcclusionQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeleteOcclusionQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glDeleteOcclusionQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __GLboolean__glIsOcclusionQuery__GLuint, + "", + ""); + I_Method1(void, glBeginOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBeginOcclusionQuery__GLuint, + "", + ""); + I_Method0(void, glEndOcclusionQuery, + Properties::NON_VIRTUAL, + __void__glEndOcclusionQuery, + "", + ""); + I_Method3(void, glGetOcclusionQueryiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetOcclusionQueryiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetOcclusionQueryuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, + __void__glGetOcclusionQueryuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryiv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryiv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method2(void, glGenQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glGenQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBeginQuery, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBeginQuery__GLenum__GLuint, + "", + ""); + I_Method1(void, glEndQuery, IN, GLenum, target, + Properties::NON_VIRTUAL, + __void__glEndQuery__GLenum, + "", + ""); + I_Method1(GLboolean, glIsQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __GLboolean__glIsQuery__GLuint, + "", + ""); + I_Method2(void, glDeleteQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glDeleteQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectui64v, IN, GLuint, id, IN, GLenum, pname, IN, GLuint64EXT *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectui64v__GLuint__GLenum__GLuint64EXT_P1, + "", + ""); I_Constructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____Extensions__unsigned_int, @@ -1098,46 +1466,619 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::Extensions) __void__setVertexProgramSupported__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::UpdateCallback) - I_VirtualBaseType(osg::Object); - I_Constructor0(____UpdateCallback, +BEGIN_OBJECT_REFLECTOR(osg::Drawable::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, "", ""); - I_Constructor2(IN, const osg::Drawable::UpdateCallback &, x, IN, const osg::CopyOp &, x, - ____UpdateCallback__C5_UpdateCallback_R1__C5_CopyOp_R1, + I_Constructor1(IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, "", ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, + I_Method1(void, lowestCommonDenominator, IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__update__osg_NodeVisitor_P1__osg_Drawable_P1, - "do customized update code. ", + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, + __bool__isVertexProgramSupported, + "", + ""); + I_Method1(void, setSecondaryColorSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSecondaryColorSupported__bool, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method1(void, setFogCoordSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFogCoordSupported__bool, + "", + ""); + I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method1(void, setMultiTexSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexSupported, + "", + ""); + I_Method1(void, setOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isOcclusionQuerySupported, + Properties::NON_VIRTUAL, + __bool__isOcclusionQuerySupported, + "", + ""); + I_Method1(void, setARBOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setARBOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isARBOcclusionQuerySupported, + Properties::NON_VIRTUAL, + __bool__isARBOcclusionQuerySupported, + "", + ""); + I_Method1(void, setTimerQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTimerQuerySupported__bool, + "", + ""); + I_Method0(bool, isTimerQuerySupported, + Properties::NON_VIRTUAL, + __bool__isTimerQuerySupported, + "", + ""); + I_Method1(void, glSecondaryColor3ubv, IN, const GLubyte *, coord, + Properties::NON_VIRTUAL, + __void__glSecondaryColor3ubv__C5_GLubyte_P1, + "", + ""); + I_Method1(void, glSecondaryColor3fv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glSecondaryColor3fv__C5_GLfloat_P1, + "", + ""); + I_Method1(void, glFogCoordfv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glFogCoordfv__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord1f, IN, GLenum, target, IN, GLfloat, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord1f__GLenum__GLfloat, + "", + ""); + I_Method2(void, glMultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord2fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord3fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord4fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib1s, IN, unsigned int, index, IN, GLshort, s, + Properties::NON_VIRTUAL, + __void__glVertexAttrib1s__unsigned_int__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib1f, IN, unsigned int, index, IN, GLfloat, f, + Properties::NON_VIRTUAL, + __void__glVertexAttrib1f__unsigned_int__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib2fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib2fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib3fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib3fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4ubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4ubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4Nubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); + I_Method2(void, glGenOcclusionQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glGenOcclusionQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeleteOcclusionQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glDeleteOcclusionQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __GLboolean__glIsOcclusionQuery__GLuint, + "", + ""); + I_Method1(void, glBeginOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBeginOcclusionQuery__GLuint, + "", + ""); + I_Method0(void, glEndOcclusionQuery, + Properties::NON_VIRTUAL, + __void__glEndOcclusionQuery, + "", + ""); + I_Method3(void, glGetOcclusionQueryiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetOcclusionQueryiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetOcclusionQueryuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, + __void__glGetOcclusionQueryuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryiv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryiv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method2(void, glGenQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glGenQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBeginQuery, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBeginQuery__GLenum__GLuint, + "", + ""); + I_Method1(void, glEndQuery, IN, GLenum, target, + Properties::NON_VIRTUAL, + __void__glEndQuery__GLenum, + "", + ""); + I_Method1(GLboolean, glIsQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __GLboolean__glIsQuery__GLuint, + "", + ""); + I_Method2(void, glDeleteQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glDeleteQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectui64v, IN, GLuint, id, IN, GLenum, pname, IN, GLuint64EXT *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectui64v__GLuint__GLenum__GLuint64EXT_P1, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, + __bool__isVertexProgramSupported, + "", + ""); + I_Method1(void, setSecondaryColorSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSecondaryColorSupported__bool, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method1(void, setFogCoordSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFogCoordSupported__bool, + "", + ""); + I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method1(void, setMultiTexSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexSupported, + "", + ""); + I_Method1(void, setOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isOcclusionQuerySupported, + Properties::NON_VIRTUAL, + __bool__isOcclusionQuerySupported, + "", + ""); + I_Method1(void, setARBOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setARBOcclusionQuerySupported__bool, + "", + ""); + I_Method0(bool, isARBOcclusionQuerySupported, + Properties::NON_VIRTUAL, + __bool__isARBOcclusionQuerySupported, + "", + ""); + I_Method1(void, setTimerQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTimerQuerySupported__bool, + "", + ""); + I_Method0(bool, isTimerQuerySupported, + Properties::NON_VIRTUAL, + __bool__isTimerQuerySupported, + "", + ""); + I_Method1(void, glSecondaryColor3ubv, IN, const GLubyte *, coord, + Properties::NON_VIRTUAL, + __void__glSecondaryColor3ubv__C5_GLubyte_P1, + "", + ""); + I_Method1(void, glSecondaryColor3fv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glSecondaryColor3fv__C5_GLfloat_P1, + "", + ""); + I_Method1(void, glFogCoordfv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glFogCoordfv__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord1f, IN, GLenum, target, IN, GLfloat, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord1f__GLenum__GLfloat, + "", + ""); + I_Method2(void, glMultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord2fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord3fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glMultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, + __void__glMultiTexCoord4fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib1s, IN, unsigned int, index, IN, GLshort, s, + Properties::NON_VIRTUAL, + __void__glVertexAttrib1s__unsigned_int__GLshort, + "", + ""); + I_Method2(void, glVertexAttrib1f, IN, unsigned int, index, IN, GLfloat, f, + Properties::NON_VIRTUAL, + __void__glVertexAttrib1f__unsigned_int__GLfloat, + "", + ""); + I_Method2(void, glVertexAttrib2fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib2fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib3fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib3fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4fv__unsigned_int__C5_GLfloat_P1, + "", + ""); + I_Method2(void, glVertexAttrib4ubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4ubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glVertexAttrib4Nubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, + __void__glVertexAttrib4Nubv__unsigned_int__C5_GLubyte_P1, + "", + ""); + I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glGenBuffers__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __void__glBindBuffer__GLenum__GLuint, + "", + ""); + I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, + "", + ""); + I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, + __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, + __GLboolean__glIsBuffer__GLuint, + "", + ""); + I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, + "", + ""); + I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, + __GLvoid_P1__glMapBuffer__GLenum__GLenum, + "", + ""); + I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, + __GLboolean__glUnmapBuffer__GLenum, + "", + ""); + I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, + __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, + "", + ""); + I_Method2(void, glGenOcclusionQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glGenOcclusionQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeleteOcclusionQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glDeleteOcclusionQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(GLboolean, glIsOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __GLboolean__glIsOcclusionQuery__GLuint, + "", + ""); + I_Method1(void, glBeginOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBeginOcclusionQuery__GLuint, + "", + ""); + I_Method0(void, glEndOcclusionQuery, + Properties::NON_VIRTUAL, + __void__glEndOcclusionQuery, + "", + ""); + I_Method3(void, glGetOcclusionQueryiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetOcclusionQueryiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetOcclusionQueryuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, + __void__glGetOcclusionQueryuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryiv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryiv__GLenum__GLenum__GLint_P1, + "", + ""); + I_Method2(void, glGenQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glGenQueries__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glBeginQuery, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBeginQuery__GLenum__GLuint, + "", + ""); + I_Method1(void, glEndQuery, IN, GLenum, target, + Properties::NON_VIRTUAL, + __void__glEndQuery__GLenum, + "", + ""); + I_Method1(GLboolean, glIsQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, + __GLboolean__glIsQuery__GLuint, + "", + ""); + I_Method2(void, glDeleteQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, + __void__glDeleteQueries__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectiv__GLuint__GLenum__GLint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectuiv__GLuint__GLenum__GLuint_P1, + "", + ""); + I_Method3(void, glGetQueryObjectui64v, IN, GLuint, id, IN, GLenum, pname, IN, GLuint64EXT *, params, + Properties::NON_VIRTUAL, + __void__glGetQueryObjectui64v__GLuint__GLenum__GLuint64EXT_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, TimerQuerySupported, + 0, + __void__setTimerQuerySupported__bool); + I_SimpleProperty(bool, VertexProgramSupported, + 0, + __void__setVertexProgramSupported__bool); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::Node * >); - diff --git a/src/osgWrappers/osg/Fog.cpp b/src/osgWrappers/osg/Fog.cpp index d218f2561..40ee96021 100644 --- a/src/osgWrappers/osg/Fog.cpp +++ b/src/osgWrappers/osg/Fog.cpp @@ -10,12 +10,13 @@ #include #include -#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -37,6 +38,7 @@ BEGIN_ENUM_REFLECTOR(osg::Fog::FogCoordinateSource) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Fog) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____Fog, "", @@ -48,32 +50,32 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -148,8 +150,120 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::Fog::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::Fog::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setDensity, IN, float, density, + Properties::NON_VIRTUAL, + __void__setDensity__float, + "", + ""); + I_Method0(float, getDensity, + Properties::NON_VIRTUAL, + __float__getDensity, + "", + ""); + I_Method1(void, setStart, IN, float, start, + Properties::NON_VIRTUAL, + __void__setStart__float, + "", + ""); + I_Method0(float, getStart, + Properties::NON_VIRTUAL, + __float__getStart, + "", + ""); + I_Method1(void, setEnd, IN, float, end, + Properties::NON_VIRTUAL, + __void__setEnd__float, + "", + ""); + I_Method0(float, getEnd, + Properties::NON_VIRTUAL, + __float__getEnd, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, setFogCoordinateSource, IN, GLint, source, + Properties::NON_VIRTUAL, + __void__setFogCoordinateSource__GLint, + "", + ""); + I_Method0(GLint, getFogCoordinateSource, + Properties::NON_VIRTUAL, + __GLint__getFogCoordinateSource, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(const osg::Vec4 &, Color, __C5_Vec4_R1__getColor, __void__setColor__C5_Vec4_R1); @@ -168,7 +282,268 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) I_SimpleProperty(float, Start, __float__getStart, __void__setStart__float); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Fog::Mode) + I_EnumLabel(osg::Fog::LINEAR); + I_EnumLabel(osg::Fog::EXP); + I_EnumLabel(osg::Fog::EXP2); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Fog::FogCoordinateSource) + I_EnumLabel(osg::Fog::FOG_COORDINATE); + I_EnumLabel(osg::Fog::FRAGMENT_DEPTH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Fog) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::Fog::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::Fog::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setDensity, IN, float, density, + Properties::NON_VIRTUAL, + __void__setDensity__float, + "", + ""); + I_Method0(float, getDensity, + Properties::NON_VIRTUAL, + __float__getDensity, + "", + ""); + I_Method1(void, setStart, IN, float, start, + Properties::NON_VIRTUAL, + __void__setStart__float, + "", + ""); + I_Method0(float, getStart, + Properties::NON_VIRTUAL, + __float__getStart, + "", + ""); + I_Method1(void, setEnd, IN, float, end, + Properties::NON_VIRTUAL, + __void__setEnd__float, + "", + ""); + I_Method0(float, getEnd, + Properties::NON_VIRTUAL, + __float__getEnd, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, setFogCoordinateSource, IN, GLint, source, + Properties::NON_VIRTUAL, + __void__setFogCoordinateSource__GLint, + "", + ""); + I_Method0(GLint, getFogCoordinateSource, + Properties::NON_VIRTUAL, + __GLint__getFogCoordinateSource, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::Fog::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::Fog::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setDensity, IN, float, density, + Properties::NON_VIRTUAL, + __void__setDensity__float, + "", + ""); + I_Method0(float, getDensity, + Properties::NON_VIRTUAL, + __float__getDensity, + "", + ""); + I_Method1(void, setStart, IN, float, start, + Properties::NON_VIRTUAL, + __void__setStart__float, + "", + ""); + I_Method0(float, getStart, + Properties::NON_VIRTUAL, + __float__getStart, + "", + ""); + I_Method1(void, setEnd, IN, float, end, + Properties::NON_VIRTUAL, + __void__setEnd__float, + "", + ""); + I_Method0(float, getEnd, + Properties::NON_VIRTUAL, + __float__getEnd, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, setFogCoordinateSource, IN, GLint, source, + Properties::NON_VIRTUAL, + __void__setFogCoordinateSource__GLint, + "", + ""); + I_Method0(GLint, getFogCoordinateSource, + Properties::NON_VIRTUAL, + __GLint__getFogCoordinateSource, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/FragmentProgram.cpp b/src/osgWrappers/osg/FragmentProgram.cpp index 661148db7..8c6370f65 100644 --- a/src/osgWrappers/osg/FragmentProgram.cpp +++ b/src/osgWrappers/osg/FragmentProgram.cpp @@ -10,13 +10,14 @@ #include #include -#include +#include +#include +#include +#include +#include +#include #include -#include -#include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -31,6 +32,7 @@ TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::FragmentProgram::Local TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::FragmentProgram::MatrixList); BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____FragmentProgram, "", @@ -42,32 +44,32 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -147,12 +149,144 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__compileGLObjects__State_R1, - "Default to nothing to compile - all state is applied immediately. ", + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getFragmentProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFragmentProgram__C5_char_P1, + "Set the fragment program using a C style string. ", + ""); + I_Method1(void, setFragmentProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, + __void__setFragmentProgram__C5_std_string_R1, + "Set the fragment program using C++ style string. ", + ""); + I_Method0(const std::string &, getFragmentProgram, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFragmentProgram, + "Get the fragment program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::FragmentProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::FragmentProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyFragmentProgramObject, + Properties::NON_VIRTUAL, + __void__dirtyFragmentProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, Properties::VIRTUAL, @@ -180,6 +314,22 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) __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_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); @@ -189,13 +339,386 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) I_SimpleProperty(const osg::FragmentProgram::MatrixList &, Matrices, __C5_MatrixList_R1__getMatrices, __void__setMatrices__C5_MatrixList_R1); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::FragmentProgram::LocalParamList); + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::FragmentProgram::MatrixList); + +BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getFragmentProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFragmentProgram__C5_char_P1, + "Set the fragment program using a C style string. ", + ""); + I_Method1(void, setFragmentProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, + __void__setFragmentProgram__C5_std_string_R1, + "Set the fragment program using C++ style string. ", + ""); + I_Method0(const std::string &, getFragmentProgram, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFragmentProgram, + "Get the fragment program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::FragmentProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::FragmentProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyFragmentProgramObject, + Properties::NON_VIRTUAL, + __void__dirtyFragmentProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getFragmentProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFragmentProgram__C5_char_P1, + "Set the fragment program using a C style string. ", + ""); + I_Method1(void, setFragmentProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, + __void__setFragmentProgram__C5_std_string_R1, + "Set the fragment program using C++ style string. ", + ""); + I_Method0(const std::string &, getFragmentProgram, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFragmentProgram, + "Get the fragment program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::FragmentProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::FragmentProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyFragmentProgramObject, + Properties::NON_VIRTUAL, + __void__dirtyFragmentProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_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(Type, Type, __Type__getType, 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setFragmentProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFragmentProgramSupported__bool, + "", + ""); + I_Method0(bool, isFragmentProgramSupported, + Properties::NON_VIRTUAL, + __bool__isFragmentProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); I_Constructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____Extensions__unsigned_int, @@ -256,7 +779,121 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions) __void__setFragmentProgramSupported__bool); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< GLenum COMMA osg::Matrix >); - -STD_MAP_REFLECTOR(std::map< GLuint COMMA osg::Vec4 >); +BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setFragmentProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFragmentProgramSupported__bool, + "", + ""); + I_Method0(bool, isFragmentProgramSupported, + Properties::NON_VIRTUAL, + __bool__isFragmentProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setFragmentProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFragmentProgramSupported__bool, + "", + ""); + I_Method0(bool, isFragmentProgramSupported, + Properties::NON_VIRTUAL, + __bool__isFragmentProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); + I_SimpleProperty(bool, FragmentProgramSupported, + 0, + __void__setFragmentProgramSupported__bool); +END_REFLECTOR diff --git a/src/osgWrappers/osg/FrameBufferObject.cpp b/src/osgWrappers/osg/FrameBufferObject.cpp index 4afa7f03e..52871c3ee 100644 --- a/src/osgWrappers/osg/FrameBufferObject.cpp +++ b/src/osgWrappers/osg/FrameBufferObject.cpp @@ -10,16 +10,17 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include #include #include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -58,6 +59,12 @@ TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenerateMipmapEXT); BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method0(bool, isSupported, + Properties::NON_VIRTUAL, + __bool__isSupported, + "", + ""); I_Method0(bool, isSupported, Properties::NON_VIRTUAL, __bool__isSupported, @@ -67,6 +74,98 @@ BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) __FBOExtensions_P1__instance__unsigned__bool_S, "", ""); + 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); + I_PublicMemberProperty(osg::FBOExtensions::TglRenderbufferStorageEXT *, glRenderbufferStorageEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglBindFramebufferEXT *, glBindFramebufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglDeleteFramebuffersEXT *, glDeleteFramebuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenFramebuffersEXT *, glGenFramebuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglCheckFramebufferStatusEXT *, glCheckFramebufferStatusEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture1DEXT *, glFramebufferTexture1DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture2DEXT *, glFramebufferTexture2DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture3DEXT *, glFramebufferTexture3DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferRenderbufferEXT *, glFramebufferRenderbufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenerateMipmapEXT *, glGenerateMipmapEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglBindRenderbufferEXT *, glBindRenderbufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenRenderbuffersEXT *, glGenRenderbuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglDeleteRenderbuffersEXT *, glDeleteRenderbuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglRenderbufferStorageEXT *, glRenderbufferStorageEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglBindFramebufferEXT *, glBindFramebufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglDeleteFramebuffersEXT *, glDeleteFramebuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenFramebuffersEXT *, glGenFramebuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglCheckFramebufferStatusEXT *, glCheckFramebufferStatusEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture1DEXT *, glFramebufferTexture1DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture2DEXT *, glFramebufferTexture2DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture3DEXT *, glFramebufferTexture3DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferRenderbufferEXT *, glFramebufferRenderbufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenerateMipmapEXT *, glGenerateMipmapEXT); +END_REFLECTOR + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglBindRenderbufferEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglDeleteRenderbuffersEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenRenderbuffersEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglRenderbufferStorageEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglBindFramebufferEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglDeleteFramebuffersEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenFramebuffersEXT); + +TYPE_NAME_ALIAS(GLenum , osg::FBOExtensions::TglCheckFramebufferStatusEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglFramebufferTexture1DEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglFramebufferTexture2DEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglFramebufferTexture3DEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglFramebufferRenderbufferEXT); + +TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenerateMipmapEXT); + +BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method0(bool, isSupported, + Properties::NON_VIRTUAL, + __bool__isSupported, + "", + ""); + I_Method0(bool, isSupported, + Properties::NON_VIRTUAL, + __bool__isSupported, + "", + ""); + I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized, + __FBOExtensions_P1__instance__unsigned__bool_S, + "", + ""); + 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); + I_PublicMemberProperty(osg::FBOExtensions::TglRenderbufferStorageEXT *, glRenderbufferStorageEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglBindFramebufferEXT *, glBindFramebufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglDeleteFramebuffersEXT *, glDeleteFramebuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenFramebuffersEXT *, glGenFramebuffersEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglCheckFramebufferStatusEXT *, glCheckFramebufferStatusEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture1DEXT *, glFramebufferTexture1DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture2DEXT *, glFramebufferTexture2DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferTexture3DEXT *, glFramebufferTexture3DEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglFramebufferRenderbufferEXT *, glFramebufferRenderbufferEXT); + I_PublicMemberProperty(osg::FBOExtensions::TglGenerateMipmapEXT *, glGenerateMipmapEXT); I_PublicMemberProperty(osg::FBOExtensions::TglBindRenderbufferEXT *, glBindRenderbufferEXT); I_PublicMemberProperty(osg::FBOExtensions::TglGenRenderbuffersEXT *, glGenRenderbuffersEXT); I_PublicMemberProperty(osg::FBOExtensions::TglDeleteRenderbuffersEXT *, glDeleteRenderbuffersEXT); @@ -137,11 +236,177 @@ BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) __int__compare__C5_FrameBufferAttachment_R1, "", ""); + I_Constructor0(____FrameBufferAttachment, + "", + ""); + I_Constructor1(IN, const osg::FrameBufferAttachment &, copy, + Properties::NON_EXPLICIT, + ____FrameBufferAttachment__C5_FrameBufferAttachment_R1, + "", + ""); + I_Constructor1(IN, osg::RenderBuffer *, target, + Properties::EXPLICIT, + ____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, + Properties::EXPLICIT, + ____FrameBufferAttachment__TextureRectangle_P1, + "", + ""); + I_Constructor1(IN, osg::Camera::Attachment &, attachment, + Properties::EXPLICIT, + ____FrameBufferAttachment__Camera_Attachment_R1, + "", + ""); + I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1, + "", + ""); + I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__attach__State_R1__GLenum__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa, + Properties::NON_VIRTUAL, + __int__compare__C5_FrameBufferAttachment_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) + I_Constructor0(____FrameBufferAttachment, + "", + ""); + I_Constructor1(IN, const osg::FrameBufferAttachment &, copy, + Properties::NON_EXPLICIT, + ____FrameBufferAttachment__C5_FrameBufferAttachment_R1, + "", + ""); + I_Constructor1(IN, osg::RenderBuffer *, target, + Properties::EXPLICIT, + ____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, + Properties::EXPLICIT, + ____FrameBufferAttachment__TextureRectangle_P1, + "", + ""); + I_Constructor1(IN, osg::Camera::Attachment &, attachment, + Properties::EXPLICIT, + ____FrameBufferAttachment__Camera_Attachment_R1, + "", + ""); + I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1, + "", + ""); + I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__attach__State_R1__GLenum__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa, + Properties::NON_VIRTUAL, + __int__compare__C5_FrameBufferAttachment_R1, + "", + ""); + I_Constructor0(____FrameBufferAttachment, + "", + ""); + I_Constructor1(IN, const osg::FrameBufferAttachment &, copy, + Properties::NON_EXPLICIT, + ____FrameBufferAttachment__C5_FrameBufferAttachment_R1, + "", + ""); + I_Constructor1(IN, osg::RenderBuffer *, target, + Properties::EXPLICIT, + ____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, + Properties::EXPLICIT, + ____FrameBufferAttachment__TextureRectangle_P1, + "", + ""); + I_Constructor1(IN, osg::Camera::Attachment &, attachment, + Properties::EXPLICIT, + ____FrameBufferAttachment__Camera_Attachment_R1, + "", + ""); + I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1, + "", + ""); + I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__attach__State_R1__GLenum__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa, + Properties::NON_VIRTUAL, + __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_BaseType(osg::StateAttribute); I_Constructor0(____FrameBufferObject, "", @@ -153,32 +418,32 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap, Properties::NON_VIRTUAL, @@ -201,15 +466,90 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap, + Properties::NON_VIRTUAL, + __C5_AttachmentMap_R1__getAttachmentMap, + "", + ""); + I_Method1(bool, hasAttachment, IN, GLenum, attachment_point, + Properties::NON_VIRTUAL, + __bool__hasAttachment__GLenum, + "", + ""); + I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point, + Properties::NON_VIRTUAL, + __C5_FrameBufferAttachment_R1__getAttachment__GLenum, + "", + ""); + I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment, + Properties::NON_VIRTUAL, + __void__setAttachment__GLenum__C5_FrameBufferAttachment_R1, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::NON_VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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_StaticMethod2(void, deleteFrameBufferObject, IN, unsigned int, contextID, IN, GLuint, program, __void__deleteFrameBufferObject__unsigned_int__GLuint_S, "Mark internal FBO for deletion. ", @@ -225,34 +565,33 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) I_SimpleProperty(const osg::FrameBufferObject::AttachmentMap &, AttachmentMap, __C5_AttachmentMap_R1__getAttachmentMap, 0); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) - I_BaseType(osg::Object); - I_Constructor0(____RenderBuffer, +TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap); + +BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____FrameBufferObject, "", ""); - 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_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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -261,76 +600,140 @@ BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(int, getWidth, - Properties::NON_VIRTUAL, - __int__getWidth, "", ""); - I_Method0(int, getHeight, - Properties::NON_VIRTUAL, - __int__getHeight, + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, "", ""); - I_Method1(void, setWidth, IN, int, w, + I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap, Properties::NON_VIRTUAL, - __void__setWidth__int, + __C5_AttachmentMap_R1__getAttachmentMap, "", ""); - I_Method1(void, setHeight, IN, int, h, + I_Method1(bool, hasAttachment, IN, GLenum, attachment_point, Properties::NON_VIRTUAL, - __void__setHeight__int, + __bool__hasAttachment__GLenum, "", ""); - I_Method2(void, setSize, IN, int, w, IN, int, h, + I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point, Properties::NON_VIRTUAL, - __void__setSize__int__int, + __C5_FrameBufferAttachment_R1__getAttachment__GLenum, "", ""); - I_Method0(GLenum, getInternalFormat, + I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment, Properties::NON_VIRTUAL, - __GLenum__getInternalFormat, + __void__setAttachment__GLenum__C5_FrameBufferAttachment_R1, "", ""); - I_Method1(void, setInternalFormat, IN, GLenum, format, + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::NON_VIRTUAL, - __void__setInternalFormat__GLenum, + __int__compare__C5_StateAttribute_R1, "", ""); - I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + I_Method1(void, apply, IN, osg::State &, state, Properties::NON_VIRTUAL, - __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, + __void__apply__State_R1, "", ""); - I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, - Properties::NON_VIRTUAL, - __int__compare__C5_RenderBuffer_R1, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, "", ""); - I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, - __void__deleteRenderBuffer__unsigned_int__GLuint_S, - "Mark internal RenderBuffer for deletion. ", + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap, + Properties::NON_VIRTUAL, + __C5_AttachmentMap_R1__getAttachmentMap, + "", + ""); + I_Method1(bool, hasAttachment, IN, GLenum, attachment_point, + Properties::NON_VIRTUAL, + __bool__hasAttachment__GLenum, + "", + ""); + I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point, + Properties::NON_VIRTUAL, + __C5_FrameBufferAttachment_R1__getAttachment__GLenum, + "", + ""); + I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment, + Properties::NON_VIRTUAL, + __void__setAttachment__GLenum__C5_FrameBufferAttachment_R1, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::NON_VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, 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_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_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); + 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(Type, Type, + __Type__getType, + 0); 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 3658288a4..cf0012d73 100644 --- a/src/osgWrappers/osg/FrameStamp.cpp +++ b/src/osgWrappers/osg/FrameStamp.cpp @@ -22,6 +22,168 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameStamp) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____FrameStamp, + "", + ""); + I_Constructor1(IN, const osg::FrameStamp &, fs, + Properties::NON_EXPLICIT, + ____FrameStamp__C5_FrameStamp_R1, + "", + ""); + I_Method1(void, setFrameNumber, IN, int, fnum, + Properties::NON_VIRTUAL, + __void__setFrameNumber__int, + "", + ""); + I_Method0(int, getFrameNumber, + Properties::NON_VIRTUAL, + __int__getFrameNumber, + "", + ""); + I_Method1(void, setReferenceTime, IN, double, refTime, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + Properties::NON_VIRTUAL, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setSimulationTime, IN, double, refTime, + Properties::NON_VIRTUAL, + __void__setSimulationTime__double, + "", + ""); + I_Method0(double, getSimulationTime, + Properties::NON_VIRTUAL, + __double__getSimulationTime, + "", + ""); + I_Method1(void, setCalendarTime, IN, const tm &, calendarTime, + Properties::NON_VIRTUAL, + __void__setCalendarTime__C5_tm_R1, + "", + ""); + I_Method1(void, getCalendarTime, IN, tm &, calendarTime, + Properties::NON_VIRTUAL, + __void__getCalendarTime__tm_R1, + "", + ""); + I_Constructor0(____FrameStamp, + "", + ""); + I_Constructor1(IN, const osg::FrameStamp &, fs, + Properties::NON_EXPLICIT, + ____FrameStamp__C5_FrameStamp_R1, + "", + ""); + I_Method1(void, setFrameNumber, IN, int, fnum, + Properties::NON_VIRTUAL, + __void__setFrameNumber__int, + "", + ""); + I_Method0(int, getFrameNumber, + Properties::NON_VIRTUAL, + __int__getFrameNumber, + "", + ""); + I_Method1(void, setReferenceTime, IN, double, refTime, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + Properties::NON_VIRTUAL, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setSimulationTime, IN, double, refTime, + Properties::NON_VIRTUAL, + __void__setSimulationTime__double, + "", + ""); + I_Method0(double, getSimulationTime, + Properties::NON_VIRTUAL, + __double__getSimulationTime, + "", + ""); + I_Method1(void, setCalendarTime, IN, const tm &, calendarTime, + Properties::NON_VIRTUAL, + __void__setCalendarTime__C5_tm_R1, + "", + ""); + I_Method1(void, getCalendarTime, IN, tm &, calendarTime, + Properties::NON_VIRTUAL, + __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); + I_SimpleProperty(double, SimulationTime, + __double__getSimulationTime, + __void__setSimulationTime__double); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::FrameStamp) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____FrameStamp, + "", + ""); + I_Constructor1(IN, const osg::FrameStamp &, fs, + Properties::NON_EXPLICIT, + ____FrameStamp__C5_FrameStamp_R1, + "", + ""); + I_Method1(void, setFrameNumber, IN, int, fnum, + Properties::NON_VIRTUAL, + __void__setFrameNumber__int, + "", + ""); + I_Method0(int, getFrameNumber, + Properties::NON_VIRTUAL, + __int__getFrameNumber, + "", + ""); + I_Method1(void, setReferenceTime, IN, double, refTime, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + Properties::NON_VIRTUAL, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setSimulationTime, IN, double, refTime, + Properties::NON_VIRTUAL, + __void__setSimulationTime__double, + "", + ""); + I_Method0(double, getSimulationTime, + Properties::NON_VIRTUAL, + __double__getSimulationTime, + "", + ""); + I_Method1(void, setCalendarTime, IN, const tm &, calendarTime, + Properties::NON_VIRTUAL, + __void__setCalendarTime__C5_tm_R1, + "", + ""); + I_Method1(void, getCalendarTime, IN, tm &, calendarTime, + Properties::NON_VIRTUAL, + __void__getCalendarTime__tm_R1, + "", + ""); I_Constructor0(____FrameStamp, "", ""); diff --git a/src/osgWrappers/osg/FrontFace.cpp b/src/osgWrappers/osg/FrontFace.cpp index 3b71d06d5..b63be871e 100644 --- a/src/osgWrappers/osg/FrontFace.cpp +++ b/src/osgWrappers/osg/FrontFace.cpp @@ -10,11 +10,12 @@ #include #include -#include +#include +#include +#include +#include #include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -30,6 +31,7 @@ BEGIN_ENUM_REFLECTOR(osg::FrontFace::Mode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::FrontFace) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, Properties::NON_EXPLICIT, @@ -43,32 +45,32 @@ BEGIN_OBJECT_REFLECTOR(osg::FrontFace) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -88,12 +90,205 @@ BEGIN_OBJECT_REFLECTOR(osg::FrontFace) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::FrontFace::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(osg::FrontFace::Mode, Mode, __Mode__getMode, __void__setMode__Mode); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::FrontFace::Mode) + I_EnumLabel(osg::FrontFace::CLOCKWISE); + I_EnumLabel(osg::FrontFace::COUNTER_CLOCKWISE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::FrontFace) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::FrontFace::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::FrontFace::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(osg::FrontFace::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/GNUmakefile b/src/osgWrappers/osg/GNUmakefile index 04b55de29..d229e230a 100644 --- a/src/osgWrappers/osg/GNUmakefile +++ b/src/osgWrappers/osg/GNUmakefile @@ -7,36 +7,8 @@ CXXFILES =\ ApplicationUsage.cpp\ ArgumentParser.cpp\ Array.cpp\ - AutoTransform.cpp\ - Billboard.cpp\ - BlendColor.cpp\ - BlendEquation.cpp\ - BlendFunc.cpp\ - BoundingBox.cpp\ - BoundingSphere.cpp\ BufferObject.cpp\ Camera.cpp\ - CameraNode.cpp\ - CameraView.cpp\ - ClampColor.cpp\ - ClearNode.cpp\ - ClipNode.cpp\ - ClipPlane.cpp\ - ClusterCullingCallback.cpp\ - CollectOccludersVisitor.cpp\ - ColorMask.cpp\ - ColorMatrix.cpp\ - ConvexPlanarOccluder.cpp\ - ConvexPlanarPolygon.cpp\ - CoordinateSystemNode.cpp\ - CopyOp.cpp\ - CullFace.cpp\ - CullSettings.cpp\ - CullStack.cpp\ - CullingSet.cpp\ - DeleteHandler.cpp\ - Depth.cpp\ - DisplaySettings.cpp\ DrawPixels.cpp\ Drawable.cpp\ Endian.cpp\ @@ -45,37 +17,9 @@ CXXFILES =\ FrameBufferObject.cpp\ FrameStamp.cpp\ FrontFace.cpp\ - GL2Extensions.cpp\ Geode.cpp\ - Geometry.cpp\ - GraphicsContext.cpp\ - GraphicsThread.cpp\ - Group.cpp\ - Image.cpp\ - ImageStream.cpp\ - LOD.cpp\ - Light.cpp\ - LightModel.cpp\ - LightSource.cpp\ - LineSegment.cpp\ - LineStipple.cpp\ - LineWidth.cpp\ - LogicOp.cpp\ - Material.cpp\ - Matrix.cpp\ - MatrixTransform.cpp\ - Matrixd.cpp\ - Matrixf.cpp\ - Multisample.cpp\ - Node.cpp\ - NodeCallback.cpp\ - NodeTrackerCallback.cpp\ - NodeVisitor.cpp\ Notify.cpp\ - Object.cpp\ - OccluderNode.cpp\ PagedLOD.cpp\ - Plane.cpp\ Point.cpp\ PointSprite.cpp\ PolygonMode.cpp\ @@ -89,8 +33,6 @@ CXXFILES =\ ProxyNode.cpp\ Quat.cpp\ Referenced.cpp\ - RenderInfo.cpp\ - Scissor.cpp\ Sequence.cpp\ ShadeModel.cpp\ Shader.cpp\ @@ -98,47 +40,26 @@ CXXFILES =\ Shape.cpp\ ShapeDrawable.cpp\ State.cpp\ - StateAttribute.cpp\ StateSet.cpp\ Stats.cpp\ - Stencil.cpp\ StencilTwoSided.cpp\ Switch.cpp\ - TexEnv.cpp\ TexEnvCombine.cpp\ TexEnvFilter.cpp\ - TexGen.cpp\ - TexGenNode.cpp\ - TexMat.cpp\ Texture.cpp\ Texture1D.cpp\ Texture2D.cpp\ Texture3D.cpp\ TextureCubeMap.cpp\ TextureRectangle.cpp\ - Timer.cpp\ Transform.cpp\ Uniform.cpp\ - Vec2.cpp\ - Vec2b.cpp\ Vec2d.cpp\ - Vec2f.cpp\ - Vec2s.cpp\ - Vec3.cpp\ - Vec3b.cpp\ Vec3d.cpp\ - Vec3f.cpp\ - Vec3s.cpp\ - Vec4.cpp\ Vec4b.cpp\ - Vec4d.cpp\ - Vec4f.cpp\ Vec4s.cpp\ - Vec4ub.cpp\ VertexProgram.cpp\ View.cpp\ - Viewport.cpp\ - observer_ptr.cpp\ LIBS += -losg -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osg/Geode.cpp b/src/osgWrappers/osg/Geode.cpp index 09535d4a8..23a24d491 100644 --- a/src/osgWrappers/osg/Geode.cpp +++ b/src/osgWrappers/osg/Geode.cpp @@ -10,14 +10,15 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -31,6 +32,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Drawable > >, osg::Geode::DrawableList); BEGIN_OBJECT_REFLECTOR(osg::Geode) + I_BaseType(osg::Node); I_BaseType(osg::Node); I_Constructor0(____Geode, "", @@ -42,32 +44,32 @@ BEGIN_OBJECT_REFLECTOR(osg::Geode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, @@ -137,8 +139,130 @@ BEGIN_OBJECT_REFLECTOR(osg::Geode) I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(bool, addDrawable, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDrawables, + "Return the number of Drawables currently attached to the Geode. ", + ""); + I_Method1(osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(const osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(bool, containsDrawable, IN, const osg::Drawable *, gset, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_DrawableList_R1__getDrawableList, + "Get the list of drawables. ", + ""); + I_Method1(void, compileDrawables, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__compileDrawables__RenderInfo_R1, + "Compile OpenGL Display List for each drawable. ", + ""); + I_Method0(const osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, @@ -172,44 +296,270 @@ BEGIN_OBJECT_REFLECTOR(osg::Geode) __void__setThreadSafeRefUnref__bool); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Drawable >) - I_Constructor0(____ref_ptr, +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Drawable > >, osg::Geode::DrawableList); + +BEGIN_OBJECT_REFLECTOR(osg::Geode) + I_BaseType(osg::Node); + I_BaseType(osg::Node); + I_Constructor0(____Geode, "", ""); - I_Constructor1(IN, osg::Drawable *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(bool, addDrawable, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDrawables, + "Return the number of Drawables currently attached to the Geode. ", + ""); + I_Method1(osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(const osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(bool, containsDrawable, IN, const osg::Drawable *, gset, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_DrawableList_R1__getDrawableList, + "Get the list of drawables. ", + ""); + I_Method1(void, compileDrawables, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__compileDrawables__RenderInfo_R1, + "Compile OpenGL Display List for each drawable. ", + ""); + I_Method0(const osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_Constructor0(____Geode, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Drawable > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Drawable *, get, - Properties::NON_VIRTUAL, - __T_P1__get, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, "", ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, "", ""); - I_Method0(osg::Drawable *, release, - Properties::NON_VIRTUAL, - __T_P1__release, + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Drawable > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, "", ""); - I_SimpleProperty(osg::Drawable *, , - __T_P1__get, + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(bool, addDrawable, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDrawables, + "Return the number of Drawables currently attached to the Geode. ", + ""); + I_Method1(osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(const osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Drawable_P1__getDrawable__unsigned_int, + "Return the Drawable at position i. ", + ""); + I_Method1(bool, containsDrawable, IN, const osg::Drawable *, gset, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_DrawableList_R1__getDrawableList, + "Get the list of drawables. ", + ""); + I_Method1(void, compileDrawables, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__compileDrawables__RenderInfo_R1, + "Compile OpenGL Display List for each drawable. ", + ""); + I_Method0(const osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Drawable > >); - diff --git a/src/osgWrappers/osg/PagedLOD.cpp b/src/osgWrappers/osg/PagedLOD.cpp index 2f1432f8a..550ad3734 100644 --- a/src/osgWrappers/osg/PagedLOD.cpp +++ b/src/osgWrappers/osg/PagedLOD.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -28,6 +28,7 @@ TYPE_NAME_ALIAS(std::vector< osg::PagedLOD::PerRangeData >, osg::PagedLOD::PerRangeDataList); BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) + I_BaseType(osg::LOD); I_BaseType(osg::LOD); I_Constructor0(____PagedLOD, "", @@ -39,43 +40,43 @@ BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method1(bool, addChild, IN, osg::Node *, child, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__addChild__Node_P1__float__float, @@ -89,8 +90,165 @@ BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset, + Properties::NON_VIRTUAL, + __void__setPriorityOffset__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityOffset, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __float__getPriorityOffset__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityOffsets, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPriorityOffsets, + "", + ""); + I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale, + Properties::NON_VIRTUAL, + __void__setPriorityScale__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityScale, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __float__getPriorityScale__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityScales, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPriorityScales, + "", + ""); + I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp, + Properties::NON_VIRTUAL, + __void__setTimeStamp__unsigned_int__double, + "", + ""); + I_Method1(double, getTimeStamp, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __double__getTimeStamp__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTimeStamps, + Properties::NON_VIRTUAL, + __unsigned_int__getNumTimeStamps, + "", + ""); + I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getFrameNumberOfLastTraversal, + "Get the frame number of the last time that this PageLOD node was traversed. ", + ""); + I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); I_Method1(void, setDatabasePath, IN, const std::string &, path, Properties::NON_VIRTUAL, __void__setDatabasePath__C5_std_string_R1, @@ -225,20 +383,361 @@ BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) 0); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::PagedLOD::PerRangeData) - I_Constructor0(____PerRangeData, +TYPE_NAME_ALIAS(std::vector< osg::PagedLOD::PerRangeData >, osg::PagedLOD::PerRangeDataList); + +BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) + I_BaseType(osg::LOD); + I_BaseType(osg::LOD); + I_Constructor0(____PagedLOD, "", ""); - I_Constructor1(IN, const osg::PagedLOD::PerRangeData &, prd, - Properties::NON_EXPLICIT, - ____PerRangeData__C5_PerRangeData_R1, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset, + Properties::NON_VIRTUAL, + __void__setPriorityOffset__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityOffset, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __float__getPriorityOffset__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityOffsets, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPriorityOffsets, + "", + ""); + I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale, + Properties::NON_VIRTUAL, + __void__setPriorityScale__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityScale, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __float__getPriorityScale__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityScales, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPriorityScales, + "", + ""); + I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp, + Properties::NON_VIRTUAL, + __void__setTimeStamp__unsigned_int__double, + "", + ""); + I_Method1(double, getTimeStamp, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __double__getTimeStamp__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTimeStamps, + Properties::NON_VIRTUAL, + __unsigned_int__getNumTimeStamps, + "", + ""); + I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getFrameNumberOfLastTraversal, + "Get the frame number of the last time that this PageLOD node was traversed. ", + ""); + I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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_Constructor0(____PagedLOD, "", ""); - I_PublicMemberProperty(std::string, _filename); - I_PublicMemberProperty(float, _priorityOffset); - I_PublicMemberProperty(float, _priorityScale); - I_PublicMemberProperty(double, _timeStamp); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset, + Properties::NON_VIRTUAL, + __void__setPriorityOffset__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityOffset, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __float__getPriorityOffset__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityOffsets, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPriorityOffsets, + "", + ""); + I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale, + Properties::NON_VIRTUAL, + __void__setPriorityScale__unsigned_int__float, + "", + ""); + I_Method1(float, getPriorityScale, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __float__getPriorityScale__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumPriorityScales, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPriorityScales, + "", + ""); + I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp, + Properties::NON_VIRTUAL, + __void__setTimeStamp__unsigned_int__double, + "", + ""); + I_Method1(double, getTimeStamp, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __double__getTimeStamp__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTimeStamps, + Properties::NON_VIRTUAL, + __unsigned_int__getNumTimeStamps, + "", + ""); + I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getFrameNumberOfLastTraversal, + "Get the frame number of the last time that this PageLOD node was traversed. ", + ""); + I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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 -STD_VECTOR_REFLECTOR(std::vector< osg::PagedLOD::PerRangeData >); - diff --git a/src/osgWrappers/osg/Point.cpp b/src/osgWrappers/osg/Point.cpp index 0b0c8af79..e3807fd80 100644 --- a/src/osgWrappers/osg/Point.cpp +++ b/src/osgWrappers/osg/Point.cpp @@ -10,12 +10,7 @@ #include #include -#include -#include #include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -25,140 +20,152 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Point) - I_BaseType(osg::StateAttribute); - 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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "Return the name of the attribute's class type. ", - ""); - I_Method0(osg::StateAttribute::Type, getType, - Properties::VIRTUAL, - __Type__getType, - "Return the Type identifier of the attribute's class type. ", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method1(void, setSize, IN, float, size, - Properties::NON_VIRTUAL, - __void__setSize__float, - "", - ""); - I_Method0(float, getSize, - Properties::NON_VIRTUAL, - __float__getSize, - "", - ""); - I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, - Properties::NON_VIRTUAL, - __void__setFadeThresholdSize__float, - "", - ""); - I_Method0(float, getFadeThresholdSize, - Properties::NON_VIRTUAL, - __float__getFadeThresholdSize, - "", - ""); - I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, - Properties::NON_VIRTUAL, - __void__setDistanceAttenuation__C5_Vec3_R1, - "", - ""); - I_Method0(const osg::Vec3 &, getDistanceAttenuation, - Properties::NON_VIRTUAL, - __C5_Vec3_R1__getDistanceAttenuation, - "", - ""); - I_Method1(void, setMinSize, IN, float, minSize, - Properties::NON_VIRTUAL, - __void__setMinSize__float, - "", - ""); - I_Method0(float, getMinSize, - Properties::NON_VIRTUAL, - __float__getMinSize, - "", - ""); - I_Method1(void, setMaxSize, IN, float, maxSize, - Properties::NON_VIRTUAL, - __void__setMaxSize__float, - "", - ""); - I_Method0(float, getMaxSize, - Properties::NON_VIRTUAL, - __float__getMaxSize, - "", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __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_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Point::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Point::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setPointParametersSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setPointParametersSupported__bool, + "", + ""); + I_Method0(bool, isPointParametersSupported, + Properties::NON_VIRTUAL, + __bool__isPointParametersSupported, + "", + ""); + I_Method2(void, glPointParameteri, IN, GLenum, pname, IN, GLint, param, + Properties::NON_VIRTUAL, + __void__glPointParameteri__GLenum__GLint, + "", + ""); + I_Method2(void, glPointParameterf, IN, GLenum, pname, IN, GLfloat, param, + Properties::NON_VIRTUAL, + __void__glPointParameterf__GLenum__GLfloat, + "", + ""); + I_Method2(void, glPointParameterfv, IN, GLenum, pname, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glPointParameterfv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Point::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Point::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setPointParametersSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setPointParametersSupported__bool, + "", + ""); + I_Method0(bool, isPointParametersSupported, + Properties::NON_VIRTUAL, + __bool__isPointParametersSupported, + "", + ""); + I_Method2(void, glPointParameteri, IN, GLenum, pname, IN, GLint, param, + Properties::NON_VIRTUAL, + __void__glPointParameteri__GLenum__GLint, + "", + ""); + I_Method2(void, glPointParameterf, IN, GLenum, pname, IN, GLfloat, param, + Properties::NON_VIRTUAL, + __void__glPointParameterf__GLenum__GLfloat, + "", + ""); + I_Method2(void, glPointParameterfv, IN, GLenum, pname, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glPointParameterfv__GLenum__C5_GLfloat_P1, + "", + ""); + I_SimpleProperty(bool, PointParametersSupported, + 0, + __void__setPointParametersSupported__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Point::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Point::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Point::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setPointParametersSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setPointParametersSupported__bool, + "", + ""); + I_Method0(bool, isPointParametersSupported, + Properties::NON_VIRTUAL, + __bool__isPointParametersSupported, + "", + ""); + I_Method2(void, glPointParameteri, IN, GLenum, pname, IN, GLint, param, + Properties::NON_VIRTUAL, + __void__glPointParameteri__GLenum__GLint, + "", + ""); + I_Method2(void, glPointParameterf, IN, GLenum, pname, IN, GLfloat, param, + Properties::NON_VIRTUAL, + __void__glPointParameterf__GLenum__GLfloat, + "", + ""); + I_Method2(void, glPointParameterfv, IN, GLenum, pname, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glPointParameterfv__GLenum__C5_GLfloat_P1, + "", + ""); I_Constructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____Extensions__unsigned_int, diff --git a/src/osgWrappers/osg/PointSprite.cpp b/src/osgWrappers/osg/PointSprite.cpp index 542e308f6..cf3b5ce34 100644 --- a/src/osgWrappers/osg/PointSprite.cpp +++ b/src/osgWrappers/osg/PointSprite.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -30,6 +31,7 @@ BEGIN_ENUM_REFLECTOR(osg::PointSprite::CoordOriginMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::PointSprite) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____PointSprite, "", @@ -41,32 +43,32 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -81,18 +83,90 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, setCoordOriginMode, IN, osg::PointSprite::CoordOriginMode, mode, + Properties::NON_VIRTUAL, + __void__setCoordOriginMode__CoordOriginMode, + "", + ""); + I_Method0(osg::PointSprite::CoordOriginMode, getCoordOriginMode, + Properties::NON_VIRTUAL, + __CoordOriginMode__getCoordOriginMode, + "", + ""); + I_Constructor0(____PointSprite, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PointSprite &, ps, , 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + Properties::VIRTUAL, + __bool__checkValidityOfAssociatedModes__osg_State_R1, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__osg_State_R1, + "", + ""); I_Method1(void, setCoordOriginMode, IN, osg::PointSprite::CoordOriginMode, mode, Properties::NON_VIRTUAL, __void__setCoordOriginMode__CoordOriginMode, @@ -107,10 +181,182 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) __bool__isPointSpriteSupported__unsigned_int_S, "", ""); + I_StaticMethod1(bool, isPointSpriteSupported, IN, unsigned int, context, + __bool__isPointSpriteSupported__unsigned_int_S, + "", + ""); I_SimpleProperty(osg::PointSprite::CoordOriginMode, CoordOriginMode, __CoordOriginMode__getCoordOriginMode, __void__setCoordOriginMode__CoordOriginMode); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PointSprite::CoordOriginMode) + I_EnumLabel(osg::PointSprite::UPPER_LEFT); + I_EnumLabel(osg::PointSprite::LOWER_LEFT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PointSprite) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____PointSprite, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PointSprite &, ps, , 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + Properties::VIRTUAL, + __bool__checkValidityOfAssociatedModes__osg_State_R1, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__osg_State_R1, + "", + ""); + I_Method1(void, setCoordOriginMode, IN, osg::PointSprite::CoordOriginMode, mode, + Properties::NON_VIRTUAL, + __void__setCoordOriginMode__CoordOriginMode, + "", + ""); + I_Method0(osg::PointSprite::CoordOriginMode, getCoordOriginMode, + Properties::NON_VIRTUAL, + __CoordOriginMode__getCoordOriginMode, + "", + ""); + I_Constructor0(____PointSprite, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PointSprite &, ps, , 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + Properties::VIRTUAL, + __bool__checkValidityOfAssociatedModes__osg_State_R1, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__osg_State_R1, + "", + ""); + I_Method1(void, setCoordOriginMode, IN, osg::PointSprite::CoordOriginMode, mode, + Properties::NON_VIRTUAL, + __void__setCoordOriginMode__CoordOriginMode, + "", + ""); + I_Method0(osg::PointSprite::CoordOriginMode, getCoordOriginMode, + Properties::NON_VIRTUAL, + __CoordOriginMode__getCoordOriginMode, + "", + ""); + I_StaticMethod1(bool, isPointSpriteSupported, IN, unsigned int, context, + __bool__isPointSpriteSupported__unsigned_int_S, + "", + ""); + I_StaticMethod1(bool, isPointSpriteSupported, IN, unsigned int, context, + __bool__isPointSpriteSupported__unsigned_int_S, + "", + ""); + I_SimpleProperty(osg::PointSprite::CoordOriginMode, CoordOriginMode, + __CoordOriginMode__getCoordOriginMode, + __void__setCoordOriginMode__CoordOriginMode); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/PolygonMode.cpp b/src/osgWrappers/osg/PolygonMode.cpp index 090f6345b..cf5e36fb7 100644 --- a/src/osgWrappers/osg/PolygonMode.cpp +++ b/src/osgWrappers/osg/PolygonMode.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -37,6 +38,7 @@ BEGIN_ENUM_REFLECTOR(osg::PolygonMode::Face) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____PolygonMode, "", @@ -52,32 +54,32 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -102,8 +104,74 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Face__Mode, + "", + ""); + I_Method1(osg::PolygonMode::Mode, getMode, IN, osg::PolygonMode::Face, face, + Properties::NON_VIRTUAL, + __Mode__getMode__Face, + "", + ""); + I_Method0(bool, getFrontAndBack, + Properties::NON_VIRTUAL, + __bool__getFrontAndBack, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(bool, FrontAndBack, __bool__getFrontAndBack, 0); @@ -111,7 +179,166 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) __Mode__getMode__Face, __void__setMode__Face__Mode, 0); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PolygonMode::Mode) + I_EnumLabel(osg::PolygonMode::POINT); + I_EnumLabel(osg::PolygonMode::LINE); + I_EnumLabel(osg::PolygonMode::FILL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PolygonMode::Face) + I_EnumLabel(osg::PolygonMode::FRONT_AND_BACK); + I_EnumLabel(osg::PolygonMode::FRONT); + I_EnumLabel(osg::PolygonMode::BACK); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Face__Mode, + "", + ""); + I_Method1(osg::PolygonMode::Mode, getMode, IN, osg::PolygonMode::Face, face, + Properties::NON_VIRTUAL, + __Mode__getMode__Face, + "", + ""); + I_Method0(bool, getFrontAndBack, + Properties::NON_VIRTUAL, + __bool__getFrontAndBack, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Face__Mode, + "", + ""); + I_Method1(osg::PolygonMode::Mode, getMode, IN, osg::PolygonMode::Face, face, + Properties::NON_VIRTUAL, + __Mode__getMode__Face, + "", + ""); + I_Method0(bool, getFrontAndBack, + Properties::NON_VIRTUAL, + __bool__getFrontAndBack, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(bool, FrontAndBack, + __bool__getFrontAndBack, + 0); + I_IndexedProperty(osg::PolygonMode::Mode, Mode, + __Mode__getMode__Face, + __void__setMode__Face__Mode, + 0); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/PolygonOffset.cpp b/src/osgWrappers/osg/PolygonOffset.cpp index ca26a81cf..3dd3de277 100644 --- a/src/osgWrappers/osg/PolygonOffset.cpp +++ b/src/osgWrappers/osg/PolygonOffset.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____PolygonOffset, "", @@ -40,32 +41,32 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -100,8 +101,108 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setFactor, IN, float, factor, + Properties::NON_VIRTUAL, + __void__setFactor__float, + "", + ""); + I_Method0(float, getFactor, + Properties::NON_VIRTUAL, + __float__getFactor, + "", + ""); + I_Method1(void, setUnits, IN, float, units, + Properties::NON_VIRTUAL, + __void__setUnits__float, + "", + ""); + I_Method0(float, getUnits, + Properties::NON_VIRTUAL, + __float__getUnits, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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_StaticMethod1(void, setFactorMultiplier, IN, float, multiplier, __void__setFactorMultiplier__float_S, "", @@ -129,7 +230,221 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) I_SimpleProperty(float, Factor, __float__getFactor, __void__setFactor__float); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); + I_SimpleProperty(float, Units, + __float__getUnits, + __void__setUnits__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setFactor, IN, float, factor, + Properties::NON_VIRTUAL, + __void__setFactor__float, + "", + ""); + I_Method0(float, getFactor, + Properties::NON_VIRTUAL, + __float__getFactor, + "", + ""); + I_Method1(void, setUnits, IN, float, units, + Properties::NON_VIRTUAL, + __void__setUnits__float, + "", + ""); + I_Method0(float, getUnits, + Properties::NON_VIRTUAL, + __float__getUnits, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setFactor, IN, float, factor, + Properties::NON_VIRTUAL, + __void__setFactor__float, + "", + ""); + I_Method0(float, getFactor, + Properties::NON_VIRTUAL, + __float__getFactor, + "", + ""); + I_Method1(void, setUnits, IN, float, units, + Properties::NON_VIRTUAL, + __void__setUnits__float, + "", + ""); + I_Method0(float, getUnits, + Properties::NON_VIRTUAL, + __float__getUnits, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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_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(Type, Type, __Type__getType, 0); I_SimpleProperty(float, Units, diff --git a/src/osgWrappers/osg/PolygonStipple.cpp b/src/osgWrappers/osg/PolygonStipple.cpp index ee35a1f0f..85002efd9 100644 --- a/src/osgWrappers/osg/PolygonStipple.cpp +++ b/src/osgWrappers/osg/PolygonStipple.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____PolygonStipple, "", @@ -36,32 +37,32 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -86,12 +87,209 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMask, IN, const GLubyte *, mask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_GLubyte_P1__getMask, + "get a pointer to the mask. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(const GLubyte *, Mask, __C5_GLubyte_P1__getMask, __void__setMask__C5_GLubyte_P1); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMask, IN, const GLubyte *, mask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_GLubyte_P1__getMask, + "get a pointer to the mask. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setMask, IN, const GLubyte *, mask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_GLubyte_P1__getMask, + "get a pointer to the mask. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(const GLubyte *, Mask, + __C5_GLubyte_P1__getMask, + __void__setMask__C5_GLubyte_P1); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Polytope.cpp b/src/osgWrappers/osg/Polytope.cpp index 528d69996..517550f55 100644 --- a/src/osgWrappers/osg/Polytope.cpp +++ b/src/osgWrappers/osg/Polytope.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -192,6 +193,164 @@ BEGIN_VALUE_REFLECTOR(osg::Polytope) __void__transformProvidingInverse__C5_osg_Matrix_R1, "Transform the clipping set by provide a pre inverted matrix. ", "see transform for details. "); + I_Constructor0(____Polytope, + "", + ""); + I_Constructor1(IN, const osg::Polytope &, cv, + Properties::NON_EXPLICIT, + ____Polytope__C5_Polytope_R1, + "", + ""); + I_Constructor1(IN, const osg::Polytope::PlaneList &, pl, + Properties::NON_EXPLICIT, + ____Polytope__C5_PlaneList_R1, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_MethodWithDefaults2(void, setToUnitFrustum, IN, bool, withNear, true, IN, bool, withFar, true, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAndTransformProvidingInverse__C5_Polytope_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Polytope::PlaneList &, pl, + Properties::NON_VIRTUAL, + __void__set__C5_PlaneList_R1, + "", + ""); + I_Method1(void, add, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, + __void__add__C5_osg_Plane_R1, + "", + ""); + I_Method0(void, flip, + Properties::NON_VIRTUAL, + __void__flip, + "flip/reverse the orientation of all the planes. ", + ""); + I_Method0(osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, + __PlaneList_R1__getPlaneList, + "", + ""); + I_Method0(const osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, + __C5_PlaneList_R1__getPlaneList, + "", + ""); + I_Method1(void, setReferenceVertexList, IN, osg::Polytope::VertexList &, vertices, + Properties::NON_VIRTUAL, + __void__setReferenceVertexList__VertexList_R1, + "", + ""); + I_Method0(osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, + __VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(const osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, + __C5_VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(void, setupMask, + Properties::NON_VIRTUAL, + __void__setupMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask &, getCurrentMask, + Properties::NON_VIRTUAL, + __ClippingMask_R1__getCurrentMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getCurrentMask, + Properties::NON_VIRTUAL, + __ClippingMask__getCurrentMask, + "", + ""); + I_Method1(void, setResultMask, IN, osg::Polytope::ClippingMask, mask, + Properties::NON_VIRTUAL, + __void__setResultMask__ClippingMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getResultMask, + Properties::NON_VIRTUAL, + __ClippingMask__getResultMask, + "", + ""); + I_Method0(osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, + __MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(const osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, + __C5_MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, contains, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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); @@ -209,18 +368,26 @@ BEGIN_VALUE_REFLECTOR(osg::Polytope) __void__setResultMask__ClippingMask); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::fast_back_stack< osg::Polytope::ClippingMask >) - I_Constructor0(____fast_back_stack, +TYPE_NAME_ALIAS(unsigned int, osg::Polytope::ClippingMask); + +TYPE_NAME_ALIAS(std::vector< osg::Plane >, osg::Polytope::PlaneList); + +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(____Polytope, "", ""); - I_Constructor1(IN, const osg::fast_back_stack< osg::Polytope::ClippingMask > &, fbs, + I_Constructor1(IN, const osg::Polytope &, cv, Properties::NON_EXPLICIT, - ____fast_back_stack__C5_fast_back_stack_R1, + ____Polytope__C5_Polytope_R1, "", ""); - I_Constructor1(IN, const osg::Polytope::ClippingMask &, value, + I_Constructor1(IN, const osg::Polytope::PlaneList &, pl, Properties::NON_EXPLICIT, - ____fast_back_stack__C5_T_R1, + ____Polytope__C5_PlaneList_R1, "", ""); I_Method0(void, clear, @@ -228,45 +395,318 @@ BEGIN_VALUE_REFLECTOR(osg::fast_back_stack< osg::Polytope::ClippingMask >) __void__clear, "", ""); - I_Method0(bool, empty, + I_MethodWithDefaults2(void, setToUnitFrustum, IN, bool, withNear, true, IN, bool, withFar, true, + Properties::NON_VIRTUAL, + __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, Properties::NON_VIRTUAL, - __bool__empty, + __void__setAndTransformProvidingInverse__C5_Polytope_R1__C5_osg_Matrix_R1, "", ""); - I_Method0(unsigned int, size, + I_Method1(void, set, IN, const osg::Polytope::PlaneList &, pl, Properties::NON_VIRTUAL, - __unsigned_int__size, + __void__set__C5_PlaneList_R1, "", ""); - I_Method0(osg::Polytope::ClippingMask &, back, + I_Method1(void, add, IN, const osg::Plane &, pl, Properties::NON_VIRTUAL, - __T_R1__back, + __void__add__C5_osg_Plane_R1, "", ""); - I_Method0(const osg::Polytope::ClippingMask &, back, + I_Method0(void, flip, Properties::NON_VIRTUAL, - __C5_T_R1__back, + __void__flip, + "flip/reverse the orientation of all the planes. ", + ""); + I_Method0(osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, + __PlaneList_R1__getPlaneList, "", ""); - I_Method0(void, push_back, + I_Method0(const osg::Polytope::PlaneList &, getPlaneList, Properties::NON_VIRTUAL, - __void__push_back, + __C5_PlaneList_R1__getPlaneList, "", ""); - I_Method1(void, push_back, IN, const osg::Polytope::ClippingMask &, value, + I_Method1(void, setReferenceVertexList, IN, osg::Polytope::VertexList &, vertices, Properties::NON_VIRTUAL, - __void__push_back__C5_T_R1, + __void__setReferenceVertexList__VertexList_R1, "", ""); - I_Method0(void, pop_back, + I_Method0(osg::Polytope::VertexList &, getReferenceVertexList, Properties::NON_VIRTUAL, - __void__pop_back, + __VertexList_R1__getReferenceVertexList, "", ""); - I_PublicMemberProperty(osg::Polytope::ClippingMask, _value); - I_PublicMemberProperty(std::vector< osg::Polytope::ClippingMask >, _stack); - I_PublicMemberProperty(unsigned int, _size); + I_Method0(const osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, + __C5_VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(void, setupMask, + Properties::NON_VIRTUAL, + __void__setupMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask &, getCurrentMask, + Properties::NON_VIRTUAL, + __ClippingMask_R1__getCurrentMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getCurrentMask, + Properties::NON_VIRTUAL, + __ClippingMask__getCurrentMask, + "", + ""); + I_Method1(void, setResultMask, IN, osg::Polytope::ClippingMask, mask, + Properties::NON_VIRTUAL, + __void__setResultMask__ClippingMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getResultMask, + Properties::NON_VIRTUAL, + __ClippingMask__getResultMask, + "", + ""); + I_Method0(osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, + __MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(const osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, + __C5_MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, contains, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "Transform the clipping set by provide a pre inverted matrix. ", + "see transform for details. "); + I_Constructor0(____Polytope, + "", + ""); + I_Constructor1(IN, const osg::Polytope &, cv, + Properties::NON_EXPLICIT, + ____Polytope__C5_Polytope_R1, + "", + ""); + I_Constructor1(IN, const osg::Polytope::PlaneList &, pl, + Properties::NON_EXPLICIT, + ____Polytope__C5_PlaneList_R1, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_MethodWithDefaults2(void, setToUnitFrustum, IN, bool, withNear, true, IN, bool, withFar, true, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAndTransformProvidingInverse__C5_Polytope_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Polytope::PlaneList &, pl, + Properties::NON_VIRTUAL, + __void__set__C5_PlaneList_R1, + "", + ""); + I_Method1(void, add, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, + __void__add__C5_osg_Plane_R1, + "", + ""); + I_Method0(void, flip, + Properties::NON_VIRTUAL, + __void__flip, + "flip/reverse the orientation of all the planes. ", + ""); + I_Method0(osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, + __PlaneList_R1__getPlaneList, + "", + ""); + I_Method0(const osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, + __C5_PlaneList_R1__getPlaneList, + "", + ""); + I_Method1(void, setReferenceVertexList, IN, osg::Polytope::VertexList &, vertices, + Properties::NON_VIRTUAL, + __void__setReferenceVertexList__VertexList_R1, + "", + ""); + I_Method0(osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, + __VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(const osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, + __C5_VertexList_R1__getReferenceVertexList, + "", + ""); + I_Method0(void, setupMask, + Properties::NON_VIRTUAL, + __void__setupMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask &, getCurrentMask, + Properties::NON_VIRTUAL, + __ClippingMask_R1__getCurrentMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getCurrentMask, + Properties::NON_VIRTUAL, + __ClippingMask__getCurrentMask, + "", + ""); + I_Method1(void, setResultMask, IN, osg::Polytope::ClippingMask, mask, + Properties::NON_VIRTUAL, + __void__setResultMask__ClippingMask, + "", + ""); + I_Method0(osg::Polytope::ClippingMask, getResultMask, + Properties::NON_VIRTUAL, + __ClippingMask__getResultMask, + "", + ""); + I_Method0(osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, + __MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(const osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, + __C5_MaskStack_R1__getMaskStack, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, contains, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 -STD_VECTOR_REFLECTOR(std::vector< osg::Plane >); - diff --git a/src/osgWrappers/osg/PositionAttitudeTransform.cpp b/src/osgWrappers/osg/PositionAttitudeTransform.cpp index 74d5a3524..f96ef2e0d 100644 --- a/src/osgWrappers/osg/PositionAttitudeTransform.cpp +++ b/src/osgWrappers/osg/PositionAttitudeTransform.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) + I_BaseType(osg::Transform); I_BaseType(osg::Transform); I_Constructor0(____PositionAttitudeTransform, "", @@ -38,32 +39,340 @@ BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setAttitude__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getAttitude, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getAttitude, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getScale, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setAttitude__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getAttitude, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getAttitude, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getScale, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) + I_BaseType(osg::Transform); + I_BaseType(osg::Transform); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPosition, + "", + ""); + I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setAttitude__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getAttitude, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getAttitude, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getScale, + "", + ""); + I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, + __void__setPivotPoint__C5_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, + __C5_Vec3d_R1__getPivotPoint, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, Properties::VIRTUAL, diff --git a/src/osgWrappers/osg/PrimitiveSet.cpp b/src/osgWrappers/osg/PrimitiveSet.cpp index e5a2aaf8f..1aacc80a8 100644 --- a/src/osgWrappers/osg/PrimitiveSet.cpp +++ b/src/osgWrappers/osg/PrimitiveSet.cpp @@ -10,13 +10,14 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -29,6 +30,8 @@ TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLsizei); I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLsizei); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, @@ -55,13 +58,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -70,13 +73,298 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, + __GLint__getFirst, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, + __unsigned_int__getNumPrimitives, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, + __GLint__getFirst, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, + __unsigned_int__getNumPrimitives, + "", + ""); + I_SimpleProperty(GLint, First, + __GLint__getFirst, + __void__setFirst__GLint); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type); + +BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLsizei); + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLsizei); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, + __GLint__getFirst, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, + __unsigned_int__getNumPrimitives, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setFirst, IN, GLint, first, Properties::NON_VIRTUAL, __void__setFirst__GLint, @@ -128,6 +416,7 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) + I_BaseType(osg::PrimitiveSet); I_BaseType(osg::PrimitiveSet); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, Properties::NON_EXPLICIT, @@ -145,13 +434,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -160,13 +449,303 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__set__GLenum__GLint__GLsizei, + "", + ""); + I_Method1(void, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, + __GLint__getFirst, + "", + ""); + I_Method1(void, setCount, IN, GLsizei, count, + Properties::NON_VIRTUAL, + __void__setCount__GLsizei, + "", + ""); + I_Method0(GLsizei, getCount, + Properties::NON_VIRTUAL, + __GLsizei__getCount, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::NON_VIRTUAL, + __void__set__GLenum__GLint__GLsizei, + "", + ""); + I_Method1(void, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, + __GLint__getFirst, + "", + ""); + I_Method1(void, setCount, IN, GLsizei, count, + Properties::NON_VIRTUAL, + __void__setCount__GLsizei, + "", + ""); + I_Method0(GLsizei, getCount, + Properties::NON_VIRTUAL, + __GLsizei__getCount, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_SimpleProperty(GLsizei, Count, + __GLsizei__getCount, + __void__setCount__GLsizei); + I_SimpleProperty(GLint, First, + __GLint__getFirst, + __void__setFirst__GLint); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::PrimitiveSet); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::NON_VIRTUAL, + __void__set__GLenum__GLint__GLsizei, + "", + ""); + I_Method1(void, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, + __void__setFirst__GLint, + "", + ""); + I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, + __GLint__getFirst, + "", + ""); + I_Method1(void, setCount, IN, GLsizei, count, + Properties::NON_VIRTUAL, + __void__setCount__GLsizei, + "", + ""); + I_Method0(GLsizei, getCount, + Properties::NON_VIRTUAL, + __GLsizei__getCount, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, Properties::NON_VIRTUAL, __void__set__GLenum__GLint__GLsizei, @@ -233,6 +812,8 @@ END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLubyte); I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLubyte); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, @@ -255,13 +836,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -270,13 +851,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method0(const GLvoid *, getDataPointer, Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, @@ -330,8 +911,329 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, Properties::VIRTUAL, __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_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); + I_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + 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::VectorGLubyte, osg::DrawElementsUByte::vector_type); + +BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLubyte); + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLubyte); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); + I_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); I_Method0(void, computeRange, Properties::VIRTUAL, __void__computeRange, @@ -348,6 +1250,8 @@ END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLuint); I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLuint); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, @@ -370,13 +1274,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -385,13 +1289,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method0(const GLvoid *, getDataPointer, Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, @@ -445,8 +1349,329 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, Properties::VIRTUAL, __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_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); + I_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + 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); + +BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLuint); + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLuint); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); + I_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); I_Method0(void, computeRange, Properties::VIRTUAL, __void__computeRange, @@ -463,6 +1688,8 @@ END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type); BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLushort); I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLushort); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, @@ -485,13 +1712,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -500,13 +1727,13 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method0(const GLvoid *, getDataPointer, Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, @@ -560,8 +1787,329 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, Properties::VIRTUAL, __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_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); + I_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + 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); + +BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLushort); + I_BaseType(osg::PrimitiveSet); + I_BaseType(osg::VectorGLushort); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); + I_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "", + ""); I_Method0(void, computeRange, Properties::VIRTUAL, __void__computeRange, @@ -654,6 +2202,237 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor) __void__end, "Mimics the OpenGL glEnd() function. ", ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "Mimics the OpenGL glDrawArrays() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, + __void__begin__GLenum, + "Mimics the OpenGL glBegin() function. ", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec2_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec3_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec4_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, y, + Properties::PURE_VIRTUAL, + __void__vertex__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__vertex__float__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method0(void, end, + Properties::PURE_VIRTUAL, + __void__end, + "Mimics the OpenGL glEnd() function. ", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor) + I_Constructor0(____PrimitiveFunctor, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "Mimics the OpenGL glDrawArrays() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, + __void__begin__GLenum, + "Mimics the OpenGL glBegin() function. ", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec2_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec3_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec4_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, y, + Properties::PURE_VIRTUAL, + __void__vertex__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__vertex__float__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method0(void, end, + Properties::PURE_VIRTUAL, + __void__end, + "Mimics the OpenGL glEnd() function. ", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "Mimics the OpenGL glDrawArrays() function. ", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "Mimics the OpenGL glDrawElements() function. ", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, + __void__begin__GLenum, + "Mimics the OpenGL glBegin() function. ", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec2_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec3_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, vert, + Properties::PURE_VIRTUAL, + __void__vertex__C5_Vec4_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, y, + Properties::PURE_VIRTUAL, + __void__vertex__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__vertex__float__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method0(void, end, + Properties::PURE_VIRTUAL, + __void__end, + "Mimics the OpenGL glEnd() function. ", + ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) @@ -710,6 +2489,162 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) __void__end, "", ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::PURE_VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, + __void__begin__GLenum, + "", + ""); + I_Method1(void, vertex, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __void__vertex__unsigned_int, + "", + ""); + I_Method0(void, end, + Properties::PURE_VIRTUAL, + __void__end, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) + I_Constructor0(____PrimitiveIndexFunctor, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::PURE_VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, + __void__begin__GLenum, + "", + ""); + I_Method1(void, vertex, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __void__vertex__unsigned_int, + "", + ""); + I_Method0(void, end, + Properties::PURE_VIRTUAL, + __void__end, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::PURE_VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + Properties::PURE_VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, + __void__begin__GLenum, + "", + ""); + I_Method1(void, vertex, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __void__vertex__unsigned_int, + "", + ""); + I_Method0(void, end, + Properties::PURE_VIRTUAL, + __void__end, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Type) @@ -735,6 +2670,7 @@ BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Mode) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_ConstructorWithDefaults2(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0, ____PrimitiveSet__Type__GLenum, @@ -752,13 +2688,131 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method1(void, setMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__setMode__GLenum, + "", + ""); + I_Method0(GLenum, getMode, + Properties::NON_VIRTUAL, + __GLenum__getMode, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::PURE_VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::PURE_VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::PURE_VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::PURE_VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, + __unsigned_int__getNumPrimitives, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method0(osg::PrimitiveSet::Type, getType, Properties::NON_VIRTUAL, __Type__getType, @@ -871,23 +2925,318 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::VectorGLsizei) - I_BaseType(std::vector); - I_Constructor0(____VectorGLsizei, +BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Type) + I_EnumLabel(osg::PrimitiveSet::PrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawArraysPrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawArrayLengthsPrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawElementsUBytePrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawElementsUShortPrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawElementsUIntPrimitiveType); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Mode) + I_EnumLabel(osg::PrimitiveSet::POINTS); + I_EnumLabel(osg::PrimitiveSet::LINES); + I_EnumLabel(osg::PrimitiveSet::LINE_STRIP); + I_EnumLabel(osg::PrimitiveSet::LINE_LOOP); + I_EnumLabel(osg::PrimitiveSet::TRIANGLES); + I_EnumLabel(osg::PrimitiveSet::TRIANGLE_STRIP); + I_EnumLabel(osg::PrimitiveSet::TRIANGLE_FAN); + I_EnumLabel(osg::PrimitiveSet::QUADS); + I_EnumLabel(osg::PrimitiveSet::QUAD_STRIP); + I_EnumLabel(osg::PrimitiveSet::POLYGON); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osg::PrimitiveSet::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method1(void, setMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__setMode__GLenum, + "", + ""); + I_Method0(GLenum, getMode, + Properties::NON_VIRTUAL, + __GLenum__getMode, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::PURE_VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::PURE_VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::PURE_VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::PURE_VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, + __unsigned_int__getNumPrimitives, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osg::PrimitiveSet::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, + __bool__supportsBufferObject, + "", + ""); + I_Method1(void, setMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__setMode__GLenum, + "", + ""); + I_Method0(GLenum, getMode, + Properties::NON_VIRTUAL, + __GLenum__getMode, + "", + ""); + I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::PURE_VIRTUAL, + __void__draw__State_R1__bool, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::PURE_VIRTUAL, + __void__accept__PrimitiveFunctor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::PURE_VIRTUAL, + __void__accept__PrimitiveIndexFunctor_R1, + "", + ""); + I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, + __unsigned_int__index__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumIndices, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumIndices, + "", + ""); + I_Method1(void, offsetIndices, IN, int, offset, + Properties::PURE_VIRTUAL, + __void__offsetIndices__int, + "", + ""); + I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, + __unsigned_int__getNumPrimitives, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_Method0(void, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + 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::VectorGLubyte) + I_BaseType(std::vector); + I_Constructor0(____VectorGLubyte, "", ""); - I_Constructor1(IN, const osg::VectorGLsizei &, copy, + I_Constructor1(IN, const osg::VectorGLubyte &, copy, Properties::NON_EXPLICIT, - ____VectorGLsizei__C5_VectorGLsizei_R1, + ____VectorGLubyte__C5_VectorGLubyte_R1, "", ""); - I_Constructor2(IN, GLsizei *, beg, IN, GLsizei *, end, - ____VectorGLsizei__GLsizei_P1__GLsizei_P1, + I_Constructor2(IN, GLubyte *, beg, IN, GLubyte *, end, + ____VectorGLubyte__GLubyte_P1__GLubyte_P1, "", ""); I_Constructor1(IN, unsigned int, n, Properties::EXPLICIT, - ____VectorGLsizei__unsigned_int, + ____VectorGLubyte__unsigned_int, + "", + ""); + I_Constructor0(____VectorGLubyte, + "", + ""); + I_Constructor1(IN, const osg::VectorGLubyte &, copy, + Properties::NON_EXPLICIT, + ____VectorGLubyte__C5_VectorGLubyte_R1, + "", + ""); + I_Constructor2(IN, GLubyte *, beg, IN, GLubyte *, end, + ____VectorGLubyte__GLubyte_P1__GLubyte_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLubyte__unsigned_int, "", ""); END_REFLECTOR @@ -911,6 +3260,23 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLubyte) ____VectorGLubyte__unsigned_int, "", ""); + I_Constructor0(____VectorGLubyte, + "", + ""); + I_Constructor1(IN, const osg::VectorGLubyte &, copy, + Properties::NON_EXPLICIT, + ____VectorGLubyte__C5_VectorGLubyte_R1, + "", + ""); + I_Constructor2(IN, GLubyte *, beg, IN, GLubyte *, end, + ____VectorGLubyte__GLubyte_P1__GLubyte_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLubyte__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint) @@ -932,6 +3298,61 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint) ____VectorGLuint__unsigned_int, "", ""); + I_Constructor0(____VectorGLuint, + "", + ""); + I_Constructor1(IN, const osg::VectorGLuint &, copy, + Properties::NON_EXPLICIT, + ____VectorGLuint__C5_VectorGLuint_R1, + "", + ""); + I_Constructor2(IN, GLuint *, beg, IN, GLuint *, end, + ____VectorGLuint__GLuint_P1__GLuint_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLuint__unsigned_int, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint) + I_BaseType(std::vector); + I_Constructor0(____VectorGLuint, + "", + ""); + I_Constructor1(IN, const osg::VectorGLuint &, copy, + Properties::NON_EXPLICIT, + ____VectorGLuint__C5_VectorGLuint_R1, + "", + ""); + I_Constructor2(IN, GLuint *, beg, IN, GLuint *, end, + ____VectorGLuint__GLuint_P1__GLuint_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLuint__unsigned_int, + "", + ""); + I_Constructor0(____VectorGLuint, + "", + ""); + I_Constructor1(IN, const osg::VectorGLuint &, copy, + Properties::NON_EXPLICIT, + ____VectorGLuint__C5_VectorGLuint_R1, + "", + ""); + I_Constructor2(IN, GLuint *, beg, IN, GLuint *, end, + ____VectorGLuint__GLuint_P1__GLuint_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLuint__unsigned_int, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort) @@ -953,5 +3374,60 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort) ____VectorGLushort__unsigned_int, "", ""); + I_Constructor0(____VectorGLushort, + "", + ""); + I_Constructor1(IN, const osg::VectorGLushort &, copy, + Properties::NON_EXPLICIT, + ____VectorGLushort__C5_VectorGLushort_R1, + "", + ""); + I_Constructor2(IN, GLushort *, beg, IN, GLushort *, end, + ____VectorGLushort__GLushort_P1__GLushort_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLushort__unsigned_int, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort) + I_BaseType(std::vector); + I_Constructor0(____VectorGLushort, + "", + ""); + I_Constructor1(IN, const osg::VectorGLushort &, copy, + Properties::NON_EXPLICIT, + ____VectorGLushort__C5_VectorGLushort_R1, + "", + ""); + I_Constructor2(IN, GLushort *, beg, IN, GLushort *, end, + ____VectorGLushort__GLushort_P1__GLushort_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLushort__unsigned_int, + "", + ""); + I_Constructor0(____VectorGLushort, + "", + ""); + I_Constructor1(IN, const osg::VectorGLushort &, copy, + Properties::NON_EXPLICIT, + ____VectorGLushort__C5_VectorGLushort_R1, + "", + ""); + I_Constructor2(IN, GLushort *, beg, IN, GLushort *, end, + ____VectorGLushort__GLushort_P1__GLushort_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorGLushort__unsigned_int, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Program.cpp b/src/osgWrappers/osg/Program.cpp index 9b2dfb0b2..4e1c8f4cc 100644 --- a/src/osgWrappers/osg/Program.cpp +++ b/src/osgWrappers/osg/Program.cpp @@ -10,13 +10,14 @@ #include #include -#include -#include +#include +#include +#include +#include +#include #include #include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -31,6 +32,7 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA GLuint >, osg::Program::AttribBindi TYPE_NAME_ALIAS(std::map< std::string COMMA osg::Program::ActiveVarInfo >, osg::Program::ActiveVarInfoMap); BEGIN_OBJECT_REFLECTOR(osg::Program) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____Program, "", @@ -42,32 +44,169 @@ BEGIN_OBJECT_REFLECTOR(osg::Program) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__osg_State_R1, + "Compile program and associated shaders. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyProgram, + "Mark our PCSOs as needing relink. ", + ""); + I_Method1(bool, addShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumShaders, + "", + ""); + I_Method1(osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(const osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(bool, removeShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addBindAttribLocation__C5_std_string_R1__GLuint, + "Add an attribute location binding. ", + ""); + I_Method1(void, removeBindAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeBindAttribLocation__C5_std_string_R1, + "Add an attribute location binding. ", + ""); + I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList, + Properties::NON_VIRTUAL, + __C5_AttribBindingList_R1__getAttribBindingList, + "", + ""); + I_Method0(bool, isFixedFunction, + Properties::NON_VIRTUAL, + __bool__isFixedFunction, + "Return true if this Program represents \"fixed-functionality\" rendering. ", + ""); + I_Method2(bool, getGlProgramInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + Properties::NON_VIRTUAL, + __bool__getGlProgramInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glProgram. ", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveUniforms__unsigned_int, + "", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveAttribs__unsigned_int, + "", + ""); + I_Method1(osg::Program::PerContextProgram *, getPCP, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __PerContextProgram_P1__getPCP__unsigned_int, + "Get the PCP for a particular GL context. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -177,6 +316,14 @@ BEGIN_OBJECT_REFLECTOR(osg::Program) __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_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); @@ -190,12 +337,354 @@ BEGIN_OBJECT_REFLECTOR(osg::Program) I_SimpleProperty(bool, ThreadSafeRefUnref, 0, __void__setThreadSafeRefUnref__bool); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA GLuint >, osg::Program::AttribBindingList); + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::Program::ActiveVarInfo >, osg::Program::ActiveVarInfoMap); + +BEGIN_OBJECT_REFLECTOR(osg::Program) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__osg_State_R1, + "Compile program and associated shaders. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyProgram, + "Mark our PCSOs as needing relink. ", + ""); + I_Method1(bool, addShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumShaders, + "", + ""); + I_Method1(osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(const osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(bool, removeShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addBindAttribLocation__C5_std_string_R1__GLuint, + "Add an attribute location binding. ", + ""); + I_Method1(void, removeBindAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeBindAttribLocation__C5_std_string_R1, + "Add an attribute location binding. ", + ""); + I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList, + Properties::NON_VIRTUAL, + __C5_AttribBindingList_R1__getAttribBindingList, + "", + ""); + I_Method0(bool, isFixedFunction, + Properties::NON_VIRTUAL, + __bool__isFixedFunction, + "Return true if this Program represents \"fixed-functionality\" rendering. ", + ""); + I_Method2(bool, getGlProgramInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + Properties::NON_VIRTUAL, + __bool__getGlProgramInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glProgram. ", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveUniforms__unsigned_int, + "", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveAttribs__unsigned_int, + "", + ""); + I_Method1(osg::Program::PerContextProgram *, getPCP, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __PerContextProgram_P1__getPCP__unsigned_int, + "Get the PCP for a particular GL context. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__osg_State_R1, + "Compile program and associated shaders. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyProgram, + "Mark our PCSOs as needing relink. ", + ""); + I_Method1(bool, addShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumShaders, + "", + ""); + I_Method1(osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(const osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Shader_P1__getShader__unsigned_int, + "", + ""); + I_Method1(bool, removeShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addBindAttribLocation__C5_std_string_R1__GLuint, + "Add an attribute location binding. ", + ""); + I_Method1(void, removeBindAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeBindAttribLocation__C5_std_string_R1, + "Add an attribute location binding. ", + ""); + I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList, + Properties::NON_VIRTUAL, + __C5_AttribBindingList_R1__getAttribBindingList, + "", + ""); + I_Method0(bool, isFixedFunction, + Properties::NON_VIRTUAL, + __bool__isFixedFunction, + "Return true if this Program represents \"fixed-functionality\" rendering. ", + ""); + I_Method2(bool, getGlProgramInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + Properties::NON_VIRTUAL, + __bool__getGlProgramInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glProgram. ", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveUniforms__unsigned_int, + "", + ""); + I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveAttribs__unsigned_int, + "", + ""); + I_Method1(osg::Program::PerContextProgram *, getPCP, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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_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(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Program::ActiveVarInfo) + I_Constructor0(____ActiveVarInfo, + "", + ""); + I_Constructor3(IN, GLint, loc, IN, GLenum, type, IN, GLint, size, + ____ActiveVarInfo__GLint__GLenum__GLint, + "", + ""); + 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); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Program::ActiveVarInfo) + I_Constructor0(____ActiveVarInfo, + "", + ""); + I_Constructor3(IN, GLint, loc, IN, GLenum, type, IN, GLint, size, + ____ActiveVarInfo__GLint__GLenum__GLint, + "", + ""); I_Constructor0(____ActiveVarInfo, "", ""); @@ -210,6 +699,81 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Program::PerContextProgram) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID, + ____PerContextProgram__C5_Program_P1__unsigned_int, + "", + ""); + I_Method0(GLuint, getHandle, + Properties::NON_VIRTUAL, + __GLuint__getHandle, + "", + ""); + I_Method0(void, requestLink, + Properties::NON_VIRTUAL, + __void__requestLink, + "", + ""); + I_Method0(void, linkProgram, + Properties::NON_VIRTUAL, + __void__linkProgram, + "", + ""); + I_Method0(bool, validateProgram, + Properties::NON_VIRTUAL, + __bool__validateProgram, + "", + ""); + I_Method0(bool, needsLink, + Properties::NON_VIRTUAL, + __bool__needsLink, + "", + ""); + I_Method0(bool, isLinked, + Properties::NON_VIRTUAL, + __bool__isLinked, + "", + ""); + I_Method1(bool, getInfoLog, IN, std::string &, infoLog, + Properties::NON_VIRTUAL, + __bool__getInfoLog__std_string_R1, + "", + ""); + I_Method0(void, useProgram, + Properties::NON_VIRTUAL, + __void__useProgram, + "", + ""); + I_Method0(void, resetAppliedUniforms, + Properties::NON_VIRTUAL, + __void__resetAppliedUniforms, + "", + ""); + I_Method1(void, apply, IN, const osg::Uniform &, uniform, + Properties::NON_VIRTUAL, + __void__apply__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveUniforms, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveAttribs, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID, ____PerContextProgram__C5_Program_P1__unsigned_int, "", @@ -295,7 +859,165 @@ BEGIN_OBJECT_REFLECTOR(osg::Program::PerContextProgram) 0); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< std::string COMMA GLuint >); - -STD_MAP_REFLECTOR(std::map< std::string COMMA osg::Program::ActiveVarInfo >); +BEGIN_OBJECT_REFLECTOR(osg::Program::PerContextProgram) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID, + ____PerContextProgram__C5_Program_P1__unsigned_int, + "", + ""); + I_Method0(GLuint, getHandle, + Properties::NON_VIRTUAL, + __GLuint__getHandle, + "", + ""); + I_Method0(void, requestLink, + Properties::NON_VIRTUAL, + __void__requestLink, + "", + ""); + I_Method0(void, linkProgram, + Properties::NON_VIRTUAL, + __void__linkProgram, + "", + ""); + I_Method0(bool, validateProgram, + Properties::NON_VIRTUAL, + __bool__validateProgram, + "", + ""); + I_Method0(bool, needsLink, + Properties::NON_VIRTUAL, + __bool__needsLink, + "", + ""); + I_Method0(bool, isLinked, + Properties::NON_VIRTUAL, + __bool__isLinked, + "", + ""); + I_Method1(bool, getInfoLog, IN, std::string &, infoLog, + Properties::NON_VIRTUAL, + __bool__getInfoLog__std_string_R1, + "", + ""); + I_Method0(void, useProgram, + Properties::NON_VIRTUAL, + __void__useProgram, + "", + ""); + I_Method0(void, resetAppliedUniforms, + Properties::NON_VIRTUAL, + __void__resetAppliedUniforms, + "", + ""); + I_Method1(void, apply, IN, const osg::Uniform &, uniform, + Properties::NON_VIRTUAL, + __void__apply__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveUniforms, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveAttribs, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID, + ____PerContextProgram__C5_Program_P1__unsigned_int, + "", + ""); + I_Method0(GLuint, getHandle, + Properties::NON_VIRTUAL, + __GLuint__getHandle, + "", + ""); + I_Method0(void, requestLink, + Properties::NON_VIRTUAL, + __void__requestLink, + "", + ""); + I_Method0(void, linkProgram, + Properties::NON_VIRTUAL, + __void__linkProgram, + "", + ""); + I_Method0(bool, validateProgram, + Properties::NON_VIRTUAL, + __bool__validateProgram, + "", + ""); + I_Method0(bool, needsLink, + Properties::NON_VIRTUAL, + __bool__needsLink, + "", + ""); + I_Method0(bool, isLinked, + Properties::NON_VIRTUAL, + __bool__isLinked, + "", + ""); + I_Method1(bool, getInfoLog, IN, std::string &, infoLog, + Properties::NON_VIRTUAL, + __bool__getInfoLog__std_string_R1, + "", + ""); + I_Method0(void, useProgram, + Properties::NON_VIRTUAL, + __void__useProgram, + "", + ""); + I_Method0(void, resetAppliedUniforms, + Properties::NON_VIRTUAL, + __void__resetAppliedUniforms, + "", + ""); + I_Method1(void, apply, IN, const osg::Uniform &, uniform, + Properties::NON_VIRTUAL, + __void__apply__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveUniforms, + "", + ""); + I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, + Properties::NON_VIRTUAL, + __C5_ActiveVarInfoMap_R1__getActiveAttribs, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __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 diff --git a/src/osgWrappers/osg/Projection.cpp b/src/osgWrappers/osg/Projection.cpp index 6e7c146c7..0ecb67fee 100644 --- a/src/osgWrappers/osg/Projection.cpp +++ b/src/osgWrappers/osg/Projection.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Projection) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____Projection, "", @@ -41,32 +42,226 @@ BEGIN_OBJECT_REFLECTOR(osg::Projection) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_Matrix_R1, + "Set the transform's matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_Matrix_R1__getMatrix, + "Get the transform's matrix. ", + ""); + I_Method1(void, preMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__preMult__C5_Matrix_R1, + "preMult transform. ", + ""); + I_Method1(void, postMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__postMult__C5_Matrix_R1, + "postMult transform. ", + ""); + 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, + Properties::NON_EXPLICIT, + ____Projection__C5_Matrix_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_Matrix_R1, + "Set the transform's matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_Matrix_R1__getMatrix, + "Get the transform's matrix. ", + ""); + I_Method1(void, preMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__preMult__C5_Matrix_R1, + "preMult transform. ", + ""); + I_Method1(void, postMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__postMult__C5_Matrix_R1, + "postMult transform. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Projection) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::NON_EXPLICIT, + ____Projection__C5_Matrix_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_Matrix_R1, + "Set the transform's matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_Matrix_R1__getMatrix, + "Get the transform's matrix. ", + ""); + I_Method1(void, preMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__preMult__C5_Matrix_R1, + "preMult transform. ", + ""); + I_Method1(void, postMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, + __void__postMult__C5_Matrix_R1, + "postMult transform. ", + ""); + 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, + Properties::NON_EXPLICIT, + ____Projection__C5_Matrix_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osg/ProxyNode.cpp b/src/osgWrappers/osg/ProxyNode.cpp index 175dcb21f..2e4960ed5 100644 --- a/src/osgWrappers/osg/ProxyNode.cpp +++ b/src/osgWrappers/osg/ProxyNode.cpp @@ -10,13 +10,14 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -34,6 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::ProxyNode::CenterMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____ProxyNode, "", @@ -45,43 +47,43 @@ BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method1(bool, addChild, IN, osg::Node *, child, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__addChild__Node_P1__C5_std_string_R1, @@ -90,8 +92,8 @@ BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setDatabasePath__C5_std_string_R1, @@ -150,8 +152,390 @@ BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, const std::string &, filename, + Properties::VIRTUAL, + __bool__addChild__Node_P1__C5_std_string_R1, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method1(void, setCenterMode, IN, osg::ProxyNode::CenterMode, mode, + Properties::NON_VIRTUAL, + __void__setCenterMode__CenterMode, + "Set how the center of object should be determined when computed which child is active. ", + ""); + I_Method0(osg::ProxyNode::CenterMode, getCenterMode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "return the ProxyNode center point. ", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getRadius, + "Get the object-space radius of the volume enclosed by the ProxyNode. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); + 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 + +TYPE_NAME_ALIAS(std::vector< std::string >, osg::ProxyNode::FileNameList); + +BEGIN_ENUM_REFLECTOR(osg::ProxyNode::CenterMode) + I_EnumLabel(osg::ProxyNode::USE_BOUNDING_SPHERE_CENTER); + I_EnumLabel(osg::ProxyNode::USER_DEFINED_CENTER); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, const std::string &, filename, + Properties::VIRTUAL, + __bool__addChild__Node_P1__C5_std_string_R1, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method1(void, setCenterMode, IN, osg::ProxyNode::CenterMode, mode, + Properties::NON_VIRTUAL, + __void__setCenterMode__CenterMode, + "Set how the center of object should be determined when computed which child is active. ", + ""); + I_Method0(osg::ProxyNode::CenterMode, getCenterMode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "return the ProxyNode center point. ", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getRadius, + "Get the object-space radius of the volume enclosed by the ProxyNode. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, const std::string &, filename, + Properties::VIRTUAL, + __bool__addChild__Node_P1__C5_std_string_R1, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "Set the database path to prepend to children's filenames. ", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFileNames, + "", + ""); + I_Method1(void, setCenterMode, IN, osg::ProxyNode::CenterMode, mode, + Properties::NON_VIRTUAL, + __void__setCenterMode__CenterMode, + "Set how the center of object should be determined when computed which child is active. ", + ""); + I_Method0(osg::ProxyNode::CenterMode, getCenterMode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "return the ProxyNode center point. ", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getRadius, + "Get the object-space radius of the volume enclosed by the ProxyNode. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); I_SimpleProperty(const osg::Vec3 &, Center, __C5_Vec3_R1__getCenter, __void__setCenter__C5_Vec3_R1); diff --git a/src/osgWrappers/osg/Quat.cpp b/src/osgWrappers/osg/Quat.cpp index dc806d967..31c5532d3 100644 --- a/src/osgWrappers/osg/Quat.cpp +++ b/src/osgWrappers/osg/Quat.cpp @@ -10,13 +10,14 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -236,5 +237,621 @@ BEGIN_VALUE_REFLECTOR(osg::Quat) __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\". "); + 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, + Properties::NON_EXPLICIT, + ____Quat__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, v, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __Vec4d__asVec4, + "", + ""); + I_Method0(osg::Vec3d, asVec3, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, + __void__set__C5_osg_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, + __void__set__C5_osg_Vec4d_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__set__C5_Matrixf_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__set__C5_Matrixd_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__get__Matrixf_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__get__Matrixd_R1, + "", + ""); + I_Method0(osg::Quat::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Quat::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Quat::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Quat::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Quat::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Quat::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Quat::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Quat::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the quaternion = sqrt( vec . vec ). ", + ""); + I_Method0(osg::Quat::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length of the quaternion = vec . vec. ", + ""); + I_Method0(osg::Quat, conj, + Properties::NON_VIRTUAL, + __Quat__conj, + "Conjugate. ", + ""); + I_Method0(const osg::Quat, inverse, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__makeRotate__value_type__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, vec, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 + +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(____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, + Properties::NON_EXPLICIT, + ____Quat__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, v, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __Vec4d__asVec4, + "", + ""); + I_Method0(osg::Vec3d, asVec3, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, + __void__set__C5_osg_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, + __void__set__C5_osg_Vec4d_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__set__C5_Matrixf_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__set__C5_Matrixd_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__get__Matrixf_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__get__Matrixd_R1, + "", + ""); + I_Method0(osg::Quat::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Quat::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Quat::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Quat::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Quat::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Quat::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Quat::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Quat::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the quaternion = sqrt( vec . vec ). ", + ""); + I_Method0(osg::Quat::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length of the quaternion = vec . vec. ", + ""); + I_Method0(osg::Quat, conj, + Properties::NON_VIRTUAL, + __Quat__conj, + "Conjugate. ", + ""); + I_Method0(const osg::Quat, inverse, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__makeRotate__value_type__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, vec, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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\". "); + 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, + Properties::NON_EXPLICIT, + ____Quat__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, v, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __Vec4d__asVec4, + "", + ""); + I_Method0(osg::Vec3d, asVec3, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, + __void__set__C5_osg_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, + __void__set__C5_osg_Vec4d_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__set__C5_Matrixf_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__set__C5_Matrixd_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __void__get__Matrixf_R1, + "", + ""); + I_Method1(void, get, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__get__Matrixd_R1, + "", + ""); + I_Method0(osg::Quat::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Quat::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Quat::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Quat::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Quat::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Quat::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Quat::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Quat::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the quaternion = sqrt( vec . vec ). ", + ""); + I_Method0(osg::Quat::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length of the quaternion = vec . vec. ", + ""); + I_Method0(osg::Quat, conj, + Properties::NON_VIRTUAL, + __Quat__conj, + "Conjugate. ", + ""); + I_Method0(const osg::Quat, inverse, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__makeRotate__value_type__C5_Vec3f_R1, + "", + ""); + I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, vec, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 c5732d229..62b53c153 100644 --- a/src/osgWrappers/osg/Referenced.cpp +++ b/src/osgWrappers/osg/Referenced.cpp @@ -10,9 +10,9 @@ #include #include -#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -23,6 +23,59 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Referenced) + I_Constructor0(____Referenced, + "", + ""); + I_Constructor1(IN, bool, threadSafeRefUnref, + Properties::EXPLICIT, + ____Referenced__bool, + "", + ""); + I_Constructor1(IN, const osg::Referenced &, x, + Properties::NON_EXPLICIT, + ____Referenced__C5_Referenced_R1, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(bool, getThreadSafeRefUnref, + Properties::NON_VIRTUAL, + __bool__getThreadSafeRefUnref, + "Get whether a mutex is used to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(void, ref, + Properties::NON_VIRTUAL, + __void__ref, + "Increment the reference count by one, indicating that this object has another pointer which is referencing it. ", + ""); + I_Method0(void, unref, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__referenceCount, + "Return the number pointers currently referencing this object. ", + ""); + I_Method1(void, addObserver, IN, osg::Observer *, observer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__removeObserver__Observer_P1, + "Add a Observer that is observering this object, notify the Observer when this object gets deleted. ", + ""); I_Constructor0(____Referenced, "", ""); @@ -92,6 +145,166 @@ BEGIN_OBJECT_REFLECTOR(osg::Referenced) __DeleteHandler_P1__getDeleteHandler_S, "Get a DeleteHandler. ", ""); + 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 + +BEGIN_OBJECT_REFLECTOR(osg::Referenced) + I_Constructor0(____Referenced, + "", + ""); + I_Constructor1(IN, bool, threadSafeRefUnref, + Properties::EXPLICIT, + ____Referenced__bool, + "", + ""); + I_Constructor1(IN, const osg::Referenced &, x, + Properties::NON_EXPLICIT, + ____Referenced__C5_Referenced_R1, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(bool, getThreadSafeRefUnref, + Properties::NON_VIRTUAL, + __bool__getThreadSafeRefUnref, + "Get whether a mutex is used to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(void, ref, + Properties::NON_VIRTUAL, + __void__ref, + "Increment the reference count by one, indicating that this object has another pointer which is referencing it. ", + ""); + I_Method0(void, unref, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__referenceCount, + "Return the number pointers currently referencing this object. ", + ""); + I_Method1(void, addObserver, IN, osg::Observer *, observer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__removeObserver__Observer_P1, + "Add a Observer that is observering this object, notify the Observer when this object gets deleted. ", + ""); + I_Constructor0(____Referenced, + "", + ""); + I_Constructor1(IN, bool, threadSafeRefUnref, + Properties::EXPLICIT, + ____Referenced__bool, + "", + ""); + I_Constructor1(IN, const osg::Referenced &, x, + Properties::NON_EXPLICIT, + ____Referenced__C5_Referenced_R1, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(bool, getThreadSafeRefUnref, + Properties::NON_VIRTUAL, + __bool__getThreadSafeRefUnref, + "Get whether a mutex is used to ensure ref() and unref() are thread safe. ", + ""); + I_Method0(void, ref, + Properties::NON_VIRTUAL, + __void__ref, + "Increment the reference count by one, indicating that this object has another pointer which is referencing it. ", + ""); + I_Method0(void, unref, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__referenceCount, + "Return the number pointers currently referencing this object. ", + ""); + I_Method1(void, addObserver, IN, osg::Observer *, observer, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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); diff --git a/src/osgWrappers/osg/Sequence.cpp b/src/osgWrappers/osg/Sequence.cpp index 55cecbdee..d0cad5dc5 100644 --- a/src/osgWrappers/osg/Sequence.cpp +++ b/src/osgWrappers/osg/Sequence.cpp @@ -10,9 +10,10 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -36,6 +37,7 @@ BEGIN_ENUM_REFLECTOR(osg::Sequence::SequenceMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Sequence) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____Sequence, "", @@ -47,37 +49,388 @@ BEGIN_OBJECT_REFLECTOR(osg::Sequence) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", + ""); + I_Method1(void, setValue, IN, int, value, + Properties::NON_VIRTUAL, + __void__setValue__int, + "", + ""); + I_Method0(int, getValue, + Properties::NON_VIRTUAL, + __int__getValue, + "", + ""); + I_Method2(void, setTime, IN, int, frame, IN, float, t, + Properties::NON_VIRTUAL, + __void__setTime__int__float, + "Set time in seconds for child. ", + ""); + I_Method1(float, getTime, IN, int, frame, + Properties::NON_VIRTUAL, + __float__getTime__int, + "Get time for child. ", + ""); + I_Method1(void, setDefaultTime, IN, float, t, + Properties::NON_VIRTUAL, + __void__setDefaultTime__float, + "Set default time in seconds for new child. ", + ""); + I_Method0(float, getDefaultTime, + Properties::NON_VIRTUAL, + __float__getDefaultTime, + "Get default time in seconds for new child. ", + ""); + I_Method0(unsigned int, getNumFrames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFrames, + "Get number of frames. ", + ""); + I_Method3(void, setInterval, IN, osg::Sequence::LoopMode, mode, IN, int, begin, IN, int, end, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getInterval__LoopMode_R1__int_R1__int_R1, + "Get sequence mode & interval. ", + ""); + I_MethodWithDefaults2(void, setDuration, IN, float, speed, , IN, int, nreps, -1, + Properties::NON_VIRTUAL, + __void__setDuration__float__int, + "Set duration: speed-up & number of repeats. ", + ""); + I_Method2(void, getDuration, IN, float &, speed, IN, int &, nreps, + Properties::NON_VIRTUAL, + __void__getDuration__float_R1__int_R1, + "Get duration & number of repeats. ", + ""); + I_Method1(void, setMode, IN, osg::Sequence::SequenceMode, mode, + Properties::NON_VIRTUAL, + __void__setMode__SequenceMode, + "Set sequence mode. ", + "Start/stop & pause/resume. "); + I_Method0(osg::Sequence::SequenceMode, getMode, + Properties::NON_VIRTUAL, + __SequenceMode__getMode, + "Get sequence mode. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(void, setValue, IN, int, value, + Properties::NON_VIRTUAL, + __void__setValue__int, + "", + ""); + I_Method0(int, getValue, + Properties::NON_VIRTUAL, + __int__getValue, + "", + ""); + I_Method2(void, setTime, IN, int, frame, IN, float, t, + Properties::NON_VIRTUAL, + __void__setTime__int__float, + "Set time in seconds for child. ", + ""); + I_Method1(float, getTime, IN, int, frame, + Properties::NON_VIRTUAL, + __float__getTime__int, + "Get time for child. ", + ""); + I_Method1(void, setDefaultTime, IN, float, t, + Properties::NON_VIRTUAL, + __void__setDefaultTime__float, + "Set default time in seconds for new child. ", + ""); + I_Method0(float, getDefaultTime, + Properties::NON_VIRTUAL, + __float__getDefaultTime, + "Get default time in seconds for new child. ", + ""); + I_Method0(unsigned int, getNumFrames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFrames, + "Get number of frames. ", + ""); + I_Method3(void, setInterval, IN, osg::Sequence::LoopMode, mode, IN, int, begin, IN, int, end, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getInterval__LoopMode_R1__int_R1__int_R1, + "Get sequence mode & interval. ", + ""); + I_MethodWithDefaults2(void, setDuration, IN, float, speed, , IN, int, nreps, -1, + Properties::NON_VIRTUAL, + __void__setDuration__float__int, + "Set duration: speed-up & number of repeats. ", + ""); + I_Method2(void, getDuration, IN, float &, speed, IN, int &, nreps, + Properties::NON_VIRTUAL, + __void__getDuration__float_R1__int_R1, + "Get duration & number of repeats. ", + ""); + I_Method1(void, setMode, IN, osg::Sequence::SequenceMode, mode, + Properties::NON_VIRTUAL, + __void__setMode__SequenceMode, + "Set sequence mode. ", + "Start/stop & pause/resume. "); + I_Method0(osg::Sequence::SequenceMode, getMode, + Properties::NON_VIRTUAL, + __SequenceMode__getMode, + "Get sequence mode. ", + ""); + I_SimpleProperty(float, DefaultTime, + __float__getDefaultTime, + __void__setDefaultTime__float); + 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 + +BEGIN_ENUM_REFLECTOR(osg::Sequence::LoopMode) + I_EnumLabel(osg::Sequence::LOOP); + I_EnumLabel(osg::Sequence::SWING); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Sequence::SequenceMode) + I_EnumLabel(osg::Sequence::START); + I_EnumLabel(osg::Sequence::STOP); + I_EnumLabel(osg::Sequence::PAUSE); + I_EnumLabel(osg::Sequence::RESUME); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Sequence) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(void, setValue, IN, int, value, + Properties::NON_VIRTUAL, + __void__setValue__int, + "", + ""); + I_Method0(int, getValue, + Properties::NON_VIRTUAL, + __int__getValue, + "", + ""); + I_Method2(void, setTime, IN, int, frame, IN, float, t, + Properties::NON_VIRTUAL, + __void__setTime__int__float, + "Set time in seconds for child. ", + ""); + I_Method1(float, getTime, IN, int, frame, + Properties::NON_VIRTUAL, + __float__getTime__int, + "Get time for child. ", + ""); + I_Method1(void, setDefaultTime, IN, float, t, + Properties::NON_VIRTUAL, + __void__setDefaultTime__float, + "Set default time in seconds for new child. ", + ""); + I_Method0(float, getDefaultTime, + Properties::NON_VIRTUAL, + __float__getDefaultTime, + "Get default time in seconds for new child. ", + ""); + I_Method0(unsigned int, getNumFrames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFrames, + "Get number of frames. ", + ""); + I_Method3(void, setInterval, IN, osg::Sequence::LoopMode, mode, IN, int, begin, IN, int, end, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getInterval__LoopMode_R1__int_R1__int_R1, + "Get sequence mode & interval. ", + ""); + I_MethodWithDefaults2(void, setDuration, IN, float, speed, , IN, int, nreps, -1, + Properties::NON_VIRTUAL, + __void__setDuration__float__int, + "Set duration: speed-up & number of repeats. ", + ""); + I_Method2(void, getDuration, IN, float &, speed, IN, int &, nreps, + Properties::NON_VIRTUAL, + __void__getDuration__float_R1__int_R1, + "Get duration & number of repeats. ", + ""); + I_Method1(void, setMode, IN, osg::Sequence::SequenceMode, mode, + Properties::NON_VIRTUAL, + __void__setMode__SequenceMode, + "Set sequence mode. ", + "Start/stop & pause/resume. "); + I_Method0(osg::Sequence::SequenceMode, getMode, + Properties::NON_VIRTUAL, + __SequenceMode__getMode, + "Get sequence mode. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", ""); I_Method1(void, setValue, IN, int, value, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osg/ShadeModel.cpp b/src/osgWrappers/osg/ShadeModel.cpp index e3bdd8d73..caa24b33e 100644 --- a/src/osgWrappers/osg/ShadeModel.cpp +++ b/src/osgWrappers/osg/ShadeModel.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -30,6 +31,7 @@ BEGIN_ENUM_REFLECTOR(osg::ShadeModel::Mode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____ShadeModel, "", @@ -41,32 +43,32 @@ BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -86,12 +88,199 @@ BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::ShadeModel::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(osg::ShadeModel::Mode, Mode, __Mode__getMode, __void__setMode__Mode); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::ShadeModel::Mode) + I_EnumLabel(osg::ShadeModel::FLAT); + I_EnumLabel(osg::ShadeModel::SMOOTH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::ShadeModel::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::ShadeModel::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(osg::ShadeModel::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Shader.cpp b/src/osgWrappers/osg/Shader.cpp index dd00cf34e..38d82b76e 100644 --- a/src/osgWrappers/osg/Shader.cpp +++ b/src/osgWrappers/osg/Shader.cpp @@ -10,8 +10,9 @@ #include #include -#include -#include +#include +#include +#include #include #include @@ -30,6 +31,7 @@ BEGIN_ENUM_REFLECTOR(osg::Shader::Type) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Shader) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, Properties::NON_EXPLICIT, @@ -47,13 +49,13 @@ BEGIN_OBJECT_REFLECTOR(osg::Shader) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -62,13 +64,13 @@ BEGIN_OBJECT_REFLECTOR(osg::Shader) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __int__compare__C5_Shader_R1, @@ -110,7 +112,110 @@ BEGIN_OBJECT_REFLECTOR(osg::Shader) "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__compileShader__unsigned_int, + "If needed, compile the PCS's glShader. ", + ""); + I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getGlShaderInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glShader. ", + ""); + I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, compare, IN, const osg::Shader &, rhs, + Properties::NON_VIRTUAL, + __int__compare__C5_Shader_R1, + "", + ""); + I_Method1(bool, setType, IN, osg::Shader::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "", + ""); + I_Method1(void, setShaderSource, IN, const std::string &, sourceText, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__loadShaderSourceFromFile__C5_std_string_R1, + "Load the Shader's source code text from a file. ", + ""); + I_Method0(const std::string &, getShaderSource, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getShaderSource, + "Query the shader's source code text. ", + ""); + I_Method0(osg::Shader::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "Get the Shader type as an enum. ", + ""); + I_Method0(const char *, getTypename, + Properties::NON_VIRTUAL, + __C5_char_P1__getTypename, + "Get the Shader type as a descriptive string. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, __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. ", ""); @@ -150,6 +255,280 @@ BEGIN_OBJECT_REFLECTOR(osg::Shader) __Shader_Type__getTypeId__C5_std_string_R1_S, "", ""); + 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 + +BEGIN_ENUM_REFLECTOR(osg::Shader::Type) + I_EnumLabel(osg::Shader::VERTEX); + I_EnumLabel(osg::Shader::FRAGMENT); + I_EnumLabel(osg::Shader::UNDEFINED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Shader) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, compare, IN, const osg::Shader &, rhs, + Properties::NON_VIRTUAL, + __int__compare__C5_Shader_R1, + "", + ""); + I_Method1(bool, setType, IN, osg::Shader::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "", + ""); + I_Method1(void, setShaderSource, IN, const std::string &, sourceText, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__loadShaderSourceFromFile__C5_std_string_R1, + "Load the Shader's source code text from a file. ", + ""); + I_Method0(const std::string &, getShaderSource, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getShaderSource, + "Query the shader's source code text. ", + ""); + I_Method0(osg::Shader::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "Get the Shader type as an enum. ", + ""); + I_Method0(const char *, getTypename, + Properties::NON_VIRTUAL, + __C5_char_P1__getTypename, + "Get the Shader type as a descriptive string. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__compileShader__unsigned_int, + "If needed, compile the PCS's glShader. ", + ""); + I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getGlShaderInfoLog__unsigned_int__std_string_R1, + "Query InfoLog from a glShader. ", + ""); + I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, compare, IN, const osg::Shader &, rhs, + Properties::NON_VIRTUAL, + __int__compare__C5_Shader_R1, + "", + ""); + I_Method1(bool, setType, IN, osg::Shader::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "", + ""); + I_Method1(void, setShaderSource, IN, const std::string &, sourceText, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__loadShaderSourceFromFile__C5_std_string_R1, + "Load the Shader's source code text from a file. ", + ""); + I_Method0(const std::string &, getShaderSource, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getShaderSource, + "Query the shader's source code text. ", + ""); + I_Method0(osg::Shader::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "Get the Shader type as an enum. ", + ""); + I_Method0(const char *, getTypename, + Properties::NON_VIRTUAL, + __C5_char_P1__getTypename, + "Get the Shader type as a descriptive string. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__compileShader__unsigned_int, + "If needed, compile the PCS's glShader. ", + ""); + I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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); diff --git a/src/osgWrappers/osg/ShadowVolumeOccluder.cpp b/src/osgWrappers/osg/ShadowVolumeOccluder.cpp index 45fb6e5a0..8830d67fa 100644 --- a/src/osgWrappers/osg/ShadowVolumeOccluder.cpp +++ b/src/osgWrappers/osg/ShadowVolumeOccluder.cpp @@ -10,15 +10,16 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -31,6 +32,99 @@ TYPE_NAME_ALIAS(std::vector< osg::Polytope >, osg::ShadowVolumeOccluder::HoleList); BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) + I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __bool__computeOccluder__C5_NodePath_R1__C5_ConvexPlanarOccluder_R1__CullStack_R1__bool, + "compute the shadow volume occluder. ", + ""); + I_Method0(void, disableResultMasks, + Properties::NON_VIRTUAL, + __void__disableResultMasks, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, matchProjectionMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __C5_NodePath_R1__getNodePath, + "", + ""); + I_Method0(float, getVolume, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Polytope_R1__getOccluder, + "return the occluder polytope. ", + ""); + I_Method0(const osg::Polytope &, getOccluder, + Properties::NON_VIRTUAL, + __C5_Polytope_R1__getOccluder, + "return the const occluder polytope. ", + ""); + I_Method0(osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, + __HoleList_R1__getHoleList, + "return the list of holes. ", + ""); + I_Method0(const osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, + __C5_HoleList_R1__getHoleList, + "return the const list of holes. ", + ""); + I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "", + ""); I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, Properties::NON_EXPLICIT, ____ShadowVolumeOccluder__C5_ShadowVolumeOccluder_R1, @@ -138,7 +232,206 @@ BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) 0); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::ShadowVolumeOccluderList); +TYPE_NAME_ALIAS(std::vector< osg::Polytope >, osg::ShadowVolumeOccluder::HoleList); -STD_VECTOR_REFLECTOR(std::vector< osg::Polytope >); +BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) + I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __bool__computeOccluder__C5_NodePath_R1__C5_ConvexPlanarOccluder_R1__CullStack_R1__bool, + "compute the shadow volume occluder. ", + ""); + I_Method0(void, disableResultMasks, + Properties::NON_VIRTUAL, + __void__disableResultMasks, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, matchProjectionMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __C5_NodePath_R1__getNodePath, + "", + ""); + I_Method0(float, getVolume, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Polytope_R1__getOccluder, + "return the occluder polytope. ", + ""); + I_Method0(const osg::Polytope &, getOccluder, + Properties::NON_VIRTUAL, + __C5_Polytope_R1__getOccluder, + "return the const occluder polytope. ", + ""); + I_Method0(osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, + __HoleList_R1__getHoleList, + "return the list of holes. ", + ""); + I_Method0(const osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, + __C5_HoleList_R1__getHoleList, + "return the const list of holes. ", + ""); + I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "", + ""); + I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __bool__computeOccluder__C5_NodePath_R1__C5_ConvexPlanarOccluder_R1__CullStack_R1__bool, + "compute the shadow volume occluder. ", + ""); + I_Method0(void, disableResultMasks, + Properties::NON_VIRTUAL, + __void__disableResultMasks, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method1(bool, matchProjectionMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __C5_NodePath_R1__getNodePath, + "", + ""); + I_Method0(float, getVolume, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Polytope_R1__getOccluder, + "return the occluder polytope. ", + ""); + I_Method0(const osg::Polytope &, getOccluder, + Properties::NON_VIRTUAL, + __C5_Polytope_R1__getOccluder, + "return the const occluder polytope. ", + ""); + I_Method0(osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, + __HoleList_R1__getHoleList, + "return the list of holes. ", + ""); + I_Method0(const osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, + __C5_HoleList_R1__getHoleList, + "return the const list of holes. ", + ""); + I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 diff --git a/src/osgWrappers/osg/Shape.cpp b/src/osgWrappers/osg/Shape.cpp index 738f90bd4..1734eb5fb 100644 --- a/src/osgWrappers/osg/Shape.cpp +++ b/src/osgWrappers/osg/Shape.cpp @@ -10,14 +10,14 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -28,6 +28,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Box) + I_BaseType(osg::Shape); I_BaseType(osg::Shape); I_Constructor0(____Box, "", @@ -47,38 +48,352 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setHalfLengths, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, + __void__setHalfLengths__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getHalfLengths, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getHalfLengths, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setHalfLengths, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, + __void__setHalfLengths__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getHalfLengths, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getHalfLengths, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __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::Box) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__C5_Vec3_R1, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setHalfLengths, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, + __void__setHalfLengths__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getHalfLengths, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getHalfLengths, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method0(bool, valid, Properties::NON_VIRTUAL, __bool__valid, @@ -141,6 +456,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Capsule) + I_BaseType(osg::Shape); I_BaseType(osg::Shape); I_Constructor0(____Capsule, "", @@ -156,38 +472,373 @@ BEGIN_OBJECT_REFLECTOR(osg::Capsule) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osg::Capsule) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method0(bool, valid, Properties::NON_VIRTUAL, __bool__valid, @@ -265,6 +916,7 @@ 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_BaseType(osg::Shape); I_Constructor0(____CompositeShape, "", @@ -276,38 +928,316 @@ BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setShape__Shape_P1, + "Set the shape that encloses all of the children. ", + ""); + I_Method0(osg::Shape *, getShape, + Properties::NON_VIRTUAL, + __Shape_P1__getShape, + "Get the shape that encloses all of the children. ", + ""); + I_Method0(const osg::Shape *, getShape, + Properties::NON_VIRTUAL, + __C5_Shape_P1__getShape, + "Get the const shape that encloses all of the children. ", + ""); + I_Method0(unsigned int, getNumChildren, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildren, + "Get the number of children of this composite shape. ", + ""); + I_Method1(osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Shape_P1__getChild__unsigned_int, + "Get a child. ", + ""); + I_Method1(const osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Shape_P1__getChild__unsigned_int, + "Get a const child. ", + ""); + I_Method1(void, addChild, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __void__addChild__Shape_P1, + "Add a child to the list. ", + ""); + I_Method1(void, removeChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeChild__unsigned_int, + "remove a child from the list. ", + ""); + I_Method1(unsigned int, findChildNo, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method1(void, setShape, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __void__setShape__Shape_P1, + "Set the shape that encloses all of the children. ", + ""); + I_Method0(osg::Shape *, getShape, + Properties::NON_VIRTUAL, + __Shape_P1__getShape, + "Get the shape that encloses all of the children. ", + ""); + I_Method0(const osg::Shape *, getShape, + Properties::NON_VIRTUAL, + __C5_Shape_P1__getShape, + "Get the const shape that encloses all of the children. ", + ""); + I_Method0(unsigned int, getNumChildren, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildren, + "Get the number of children of this composite shape. ", + ""); + I_Method1(osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Shape_P1__getChild__unsigned_int, + "Get a child. ", + ""); + I_Method1(const osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Shape_P1__getChild__unsigned_int, + "Get a const child. ", + ""); + I_Method1(void, addChild, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __void__addChild__Shape_P1, + "Add a child to the list. ", + ""); + I_Method1(void, removeChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeChild__unsigned_int, + "remove a child from the list. ", + ""); + I_Method1(unsigned int, findChildNo, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Shape > >, osg::CompositeShape::ChildList); + +BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) + I_BaseType(osg::Shape); + I_BaseType(osg::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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method1(void, setShape, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __void__setShape__Shape_P1, + "Set the shape that encloses all of the children. ", + ""); + I_Method0(osg::Shape *, getShape, + Properties::NON_VIRTUAL, + __Shape_P1__getShape, + "Get the shape that encloses all of the children. ", + ""); + I_Method0(const osg::Shape *, getShape, + Properties::NON_VIRTUAL, + __C5_Shape_P1__getShape, + "Get the const shape that encloses all of the children. ", + ""); + I_Method0(unsigned int, getNumChildren, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildren, + "Get the number of children of this composite shape. ", + ""); + I_Method1(osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Shape_P1__getChild__unsigned_int, + "Get a child. ", + ""); + I_Method1(const osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Shape_P1__getChild__unsigned_int, + "Get a const child. ", + ""); + I_Method1(void, addChild, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __void__addChild__Shape_P1, + "Add a child to the list. ", + ""); + I_Method1(void, removeChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeChild__unsigned_int, + "remove a child from the list. ", + ""); + I_Method1(unsigned int, findChildNo, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method1(void, setShape, IN, osg::Shape *, shape, Properties::NON_VIRTUAL, __void__setShape__Shape_P1, @@ -366,6 +1296,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Cone) + I_BaseType(osg::Shape); I_BaseType(osg::Shape); I_Constructor0(____Cone, "", @@ -381,38 +1312,409 @@ BEGIN_OBJECT_REFLECTOR(osg::Cone) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + I_Method0(float, getBaseOffsetFactor, + Properties::NON_VIRTUAL, + __float__getBaseOffsetFactor, + "", + ""); + I_Method0(float, getBaseOffset, + Properties::NON_VIRTUAL, + __float__getBaseOffset, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + I_Method0(float, getBaseOffsetFactor, + Properties::NON_VIRTUAL, + __float__getBaseOffsetFactor, + "", + ""); + I_Method0(float, getBaseOffset, + Properties::NON_VIRTUAL, + __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_OBJECT_REFLECTOR(osg::Cone) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + I_Method0(float, getBaseOffsetFactor, + Properties::NON_VIRTUAL, + __float__getBaseOffsetFactor, + "", + ""); + I_Method0(float, getBaseOffset, + Properties::NON_VIRTUAL, + __float__getBaseOffset, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method0(bool, valid, Properties::NON_VIRTUAL, __bool__valid, @@ -557,9 +1859,172 @@ BEGIN_VALUE_REFLECTOR(osg::ConstShapeVisitor) __void__apply__C5_CompositeShape_R1, "", ""); + I_Constructor0(____ConstShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, const osg::Sphere &, x, + Properties::VIRTUAL, + __void__apply__C5_Sphere_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Box &, x, + Properties::VIRTUAL, + __void__apply__C5_Box_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cone &, x, + Properties::VIRTUAL, + __void__apply__C5_Cone_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cylinder &, x, + Properties::VIRTUAL, + __void__apply__C5_Cylinder_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Capsule &, x, + Properties::VIRTUAL, + __void__apply__C5_Capsule_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::InfinitePlane &, x, + Properties::VIRTUAL, + __void__apply__C5_InfinitePlane_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::TriangleMesh &, x, + Properties::VIRTUAL, + __void__apply__C5_TriangleMesh_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::ConvexHull &, x, + Properties::VIRTUAL, + __void__apply__C5_ConvexHull_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::HeightField &, x, + Properties::VIRTUAL, + __void__apply__C5_HeightField_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::CompositeShape &, x, + Properties::VIRTUAL, + __void__apply__C5_CompositeShape_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ConstShapeVisitor) + I_Constructor0(____ConstShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, const osg::Sphere &, x, + Properties::VIRTUAL, + __void__apply__C5_Sphere_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Box &, x, + Properties::VIRTUAL, + __void__apply__C5_Box_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cone &, x, + Properties::VIRTUAL, + __void__apply__C5_Cone_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cylinder &, x, + Properties::VIRTUAL, + __void__apply__C5_Cylinder_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Capsule &, x, + Properties::VIRTUAL, + __void__apply__C5_Capsule_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::InfinitePlane &, x, + Properties::VIRTUAL, + __void__apply__C5_InfinitePlane_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::TriangleMesh &, x, + Properties::VIRTUAL, + __void__apply__C5_TriangleMesh_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::ConvexHull &, x, + Properties::VIRTUAL, + __void__apply__C5_ConvexHull_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::HeightField &, x, + Properties::VIRTUAL, + __void__apply__C5_HeightField_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::CompositeShape &, x, + Properties::VIRTUAL, + __void__apply__C5_CompositeShape_R1, + "", + ""); + I_Constructor0(____ConstShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, const osg::Sphere &, x, + Properties::VIRTUAL, + __void__apply__C5_Sphere_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Box &, x, + Properties::VIRTUAL, + __void__apply__C5_Box_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cone &, x, + Properties::VIRTUAL, + __void__apply__C5_Cone_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Cylinder &, x, + Properties::VIRTUAL, + __void__apply__C5_Cylinder_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Capsule &, x, + Properties::VIRTUAL, + __void__apply__C5_Capsule_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::InfinitePlane &, x, + Properties::VIRTUAL, + __void__apply__C5_InfinitePlane_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::TriangleMesh &, x, + Properties::VIRTUAL, + __void__apply__C5_TriangleMesh_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::ConvexHull &, x, + Properties::VIRTUAL, + __void__apply__C5_ConvexHull_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::HeightField &, x, + Properties::VIRTUAL, + __void__apply__C5_HeightField_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::CompositeShape &, x, + Properties::VIRTUAL, + __void__apply__C5_CompositeShape_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) + I_BaseType(osg::TriangleMesh); I_BaseType(osg::TriangleMesh); I_Constructor0(____ConvexHull, "", @@ -571,41 +2036,173 @@ BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) + I_BaseType(osg::TriangleMesh); + I_BaseType(osg::TriangleMesh); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Cylinder) + I_BaseType(osg::Shape); I_BaseType(osg::Shape); I_Constructor0(____Cylinder, "", @@ -621,38 +2218,373 @@ BEGIN_OBJECT_REFLECTOR(osg::Cylinder) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osg::Cylinder) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method0(bool, valid, Properties::NON_VIRTUAL, __bool__valid, @@ -730,6 +2662,7 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::vector< float >, osg::HeightField::HeightList); BEGIN_OBJECT_REFLECTOR(osg::HeightField) + I_BaseType(osg::Shape); I_BaseType(osg::Shape); I_Constructor0(____HeightField, "", @@ -741,38 +2674,571 @@ BEGIN_OBJECT_REFLECTOR(osg::HeightField) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::NON_VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::NON_VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3 &, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getOrigin, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getOrigin, + "", + ""); + I_Method1(void, setXInterval, IN, float, dx, + Properties::NON_VIRTUAL, + __void__setXInterval__float, + "", + ""); + I_Method0(float, getXInterval, + Properties::NON_VIRTUAL, + __float__getXInterval, + "", + ""); + I_Method1(void, setYInterval, IN, float, dy, + Properties::NON_VIRTUAL, + __void__setYInterval__float, + "", + ""); + I_Method0(float, getYInterval, + Properties::NON_VIRTUAL, + __float__getYInterval, + "", + ""); + I_Method1(void, setSkirtHeight, IN, float, skirtHeight, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getSkirtHeight, + "Get the height of the skirt to render around the edge of HeightField. ", + ""); + I_Method1(void, setBorderWidth, IN, unsigned int, borderWidth, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + I_Method3(void, setHeight, IN, unsigned int, c, IN, unsigned int, r, IN, float, value, + Properties::NON_VIRTUAL, + __void__setHeight__unsigned_int__unsigned_int__float, + "", + ""); + I_Method2(float &, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __float_R1__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method2(float, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __float__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, + __HeightList_R1__getHeightList, + "", + ""); + I_Method0(const osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, + __C5_HeightList_R1__getHeightList, + "", + ""); + I_Method2(osg::Vec3, getVertex, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec3__getVertex__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec3, getNormal, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec3__getNormal__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec2, getHeightDelta, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec2__getHeightDelta__unsigned_int__unsigned_int, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method2(void, allocate, IN, unsigned int, numColumns, IN, unsigned int, numRows, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::NON_VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::NON_VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3 &, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getOrigin, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getOrigin, + "", + ""); + I_Method1(void, setXInterval, IN, float, dx, + Properties::NON_VIRTUAL, + __void__setXInterval__float, + "", + ""); + I_Method0(float, getXInterval, + Properties::NON_VIRTUAL, + __float__getXInterval, + "", + ""); + I_Method1(void, setYInterval, IN, float, dy, + Properties::NON_VIRTUAL, + __void__setYInterval__float, + "", + ""); + I_Method0(float, getYInterval, + Properties::NON_VIRTUAL, + __float__getYInterval, + "", + ""); + I_Method1(void, setSkirtHeight, IN, float, skirtHeight, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getSkirtHeight, + "Get the height of the skirt to render around the edge of HeightField. ", + ""); + I_Method1(void, setBorderWidth, IN, unsigned int, borderWidth, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + I_Method3(void, setHeight, IN, unsigned int, c, IN, unsigned int, r, IN, float, value, + Properties::NON_VIRTUAL, + __void__setHeight__unsigned_int__unsigned_int__float, + "", + ""); + I_Method2(float &, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __float_R1__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method2(float, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __float__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, + __HeightList_R1__getHeightList, + "", + ""); + I_Method0(const osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, + __C5_HeightList_R1__getHeightList, + "", + ""); + I_Method2(osg::Vec3, getVertex, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec3__getVertex__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec3, getNormal, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec3__getNormal__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec2, getHeightDelta, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< float >, osg::HeightField::HeightList); + +BEGIN_OBJECT_REFLECTOR(osg::HeightField) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method2(void, allocate, IN, unsigned int, numColumns, IN, unsigned int, numRows, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::NON_VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::NON_VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3 &, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getOrigin, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getOrigin, + "", + ""); + I_Method1(void, setXInterval, IN, float, dx, + Properties::NON_VIRTUAL, + __void__setXInterval__float, + "", + ""); + I_Method0(float, getXInterval, + Properties::NON_VIRTUAL, + __float__getXInterval, + "", + ""); + I_Method1(void, setYInterval, IN, float, dy, + Properties::NON_VIRTUAL, + __void__setYInterval__float, + "", + ""); + I_Method0(float, getYInterval, + Properties::NON_VIRTUAL, + __float__getYInterval, + "", + ""); + I_Method1(void, setSkirtHeight, IN, float, skirtHeight, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getSkirtHeight, + "Get the height of the skirt to render around the edge of HeightField. ", + ""); + I_Method1(void, setBorderWidth, IN, unsigned int, borderWidth, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setRotation__C5_Quat_R1, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getRotation, + "", + ""); + I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, + __Matrix__computeRotationMatrix, + "", + ""); + I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, + __bool__zeroRotation, + "", + ""); + I_Method3(void, setHeight, IN, unsigned int, c, IN, unsigned int, r, IN, float, value, + Properties::NON_VIRTUAL, + __void__setHeight__unsigned_int__unsigned_int__float, + "", + ""); + I_Method2(float &, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __float_R1__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method2(float, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __float__getHeight__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, + __HeightList_R1__getHeightList, + "", + ""); + I_Method0(const osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, + __C5_HeightList_R1__getHeightList, + "", + ""); + I_Method2(osg::Vec3, getVertex, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec3__getVertex__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec3, getNormal, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec3__getNormal__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osg::Vec2, getHeightDelta, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, + __Vec2__getHeightDelta__unsigned_int__unsigned_int, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method2(void, allocate, IN, unsigned int, numColumns, IN, unsigned int, numRows, Properties::NON_VIRTUAL, __void__allocate__unsigned_int__unsigned_int, @@ -926,6 +3392,8 @@ BEGIN_OBJECT_REFLECTOR(osg::HeightField) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) + I_BaseType(osg::Shape); + I_BaseType(osg::Plane); I_BaseType(osg::Shape); I_BaseType(osg::Plane); I_Constructor0(____InfinitePlane, @@ -938,16 +3406,196 @@ BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) + I_BaseType(osg::Shape); + I_BaseType(osg::Plane); + I_BaseType(osg::Shape); + I_BaseType(osg::Plane); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, + __bool__isSameKindAs__C5_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, @@ -960,20 +3608,16 @@ BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, - Properties::VIRTUAL, - __void__accept__osg_ShapeVisitor_R1, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, + Properties::PURE_VIRTUAL, + __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 &, csv, - Properties::VIRTUAL, - __void__accept__osg_ConstShapeVisitor_R1, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, + Properties::PURE_VIRTUAL, + __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_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) - I_BaseType(osg::Object); I_Constructor0(____Shape, "", ""); @@ -1018,63 +3662,97 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) "Must be defined by derived classes. "); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ShapeVisitor) - I_Constructor0(____ShapeVisitor, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____Shape, "", ""); - I_Method1(void, apply, IN, osg::Sphere &, x, + 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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, Properties::VIRTUAL, - __void__apply__Sphere_R1, - "", + __bool__isSameKindAs__C5_Object_P1, + "return true if this and obj are of the same kind of object. ", ""); - I_Method1(void, apply, IN, osg::Box &, x, + I_Method0(const char *, libraryName, Properties::VIRTUAL, - __void__apply__Box_R1, - "", + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", ""); - I_Method1(void, apply, IN, osg::Cone &, x, + I_Method0(const char *, className, Properties::VIRTUAL, - __void__apply__Cone_R1, - "", + __C5_char_P1__className, + "return the name of the attribute's class type. ", ""); - I_Method1(void, apply, IN, osg::Cylinder &, x, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__accept__ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + 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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, Properties::VIRTUAL, - __void__apply__Cylinder_R1, - "", + __bool__isSameKindAs__C5_Object_P1, + "return true if this and obj are of the same kind of object. ", ""); - I_Method1(void, apply, IN, osg::Capsule &, x, + I_Method0(const char *, libraryName, Properties::VIRTUAL, - __void__apply__Capsule_R1, - "", + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", ""); - I_Method1(void, apply, IN, osg::InfinitePlane &, x, + I_Method0(const char *, className, Properties::VIRTUAL, - __void__apply__InfinitePlane_R1, - "", - ""); - I_Method1(void, apply, IN, osg::TriangleMesh &, x, - Properties::VIRTUAL, - __void__apply__TriangleMesh_R1, - "", - ""); - I_Method1(void, apply, IN, osg::ConvexHull &, x, - Properties::VIRTUAL, - __void__apply__ConvexHull_R1, - "", - ""); - I_Method1(void, apply, IN, osg::HeightField &, x, - Properties::VIRTUAL, - __void__apply__HeightField_R1, - "", - ""); - I_Method1(void, apply, IN, osg::CompositeShape &, x, - Properties::VIRTUAL, - __void__apply__CompositeShape_R1, - "", + __C5_char_P1__className, + "return the name of the attribute's class type. ", ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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_OBJECT_REFLECTOR(osg::Sphere) + I_BaseType(osg::Shape); I_BaseType(osg::Shape); I_Constructor0(____Sphere, "", @@ -1090,38 +3768,114 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); I_Method0(bool, valid, Properties::NON_VIRTUAL, __bool__valid, @@ -1160,107 +3914,53 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) __void__setRadius__float); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) +BEGIN_OBJECT_REFLECTOR(osg::Sphere) I_BaseType(osg::Shape); - I_Constructor0(____TriangleMesh, + I_BaseType(osg::Shape); + I_Constructor0(____Sphere, "", ""); - I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + 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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the attribute's class type. ", + "", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, - Properties::NON_VIRTUAL, - __void__setVertices__Vec3Array_P1, - "", - ""); - I_Method0(osg::Vec3Array *, getVertices, - Properties::NON_VIRTUAL, - __Vec3Array_P1__getVertices, - "", - ""); - I_Method0(const osg::Vec3Array *, getVertices, - Properties::NON_VIRTUAL, - __C5_Vec3Array_P1__getVertices, - "", - ""); - I_Method1(void, setIndices, IN, osg::IndexArray *, indices, - Properties::NON_VIRTUAL, - __void__setIndices__IndexArray_P1, - "", - ""); - I_Method0(osg::IndexArray *, getIndices, - Properties::NON_VIRTUAL, - __IndexArray_P1__getIndices, - "", - ""); - I_Method0(const osg::IndexArray *, getIndices, - Properties::NON_VIRTUAL, - __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(____ref_ptr, - "", - ""); - I_Constructor1(IN, osg::Shape *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Shape > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Shape *, get, - Properties::NON_VIRTUAL, - __T_P1__get, "", ""); I_Method0(bool, valid, @@ -1268,22 +3968,112 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Shape >) __bool__valid, "", ""); - I_Method0(osg::Shape *, release, + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, Properties::NON_VIRTUAL, - __T_P1__release, + __void__set__C5_Vec3_R1__float, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Shape > &, rp, + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __void__setCenter__C5_Vec3_R1, "", ""); - I_SimpleProperty(osg::Shape *, , - __T_P1__get, - 0); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_R1__float, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getCenter, + "", + ""); + I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __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 -STD_VECTOR_REFLECTOR(std::vector< float >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Shape > >); - diff --git a/src/osgWrappers/osg/ShapeDrawable.cpp b/src/osgWrappers/osg/ShapeDrawable.cpp index ccf9402d6..cdb09bd7e 100644 --- a/src/osgWrappers/osg/ShapeDrawable.cpp +++ b/src/osgWrappers/osg/ShapeDrawable.cpp @@ -10,15 +10,16 @@ #include #include -#include -#include +#include +#include +#include +#include +#include #include -#include #include #include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -29,6 +30,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) + I_BaseType(osg::Drawable); I_BaseType(osg::Drawable); I_Constructor0(____ShapeDrawable, "", @@ -44,13 +46,13 @@ BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, @@ -59,13 +61,13 @@ BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setColor__C5_Vec4_R1, @@ -124,7 +126,306 @@ BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) I_Method0(osg::BoundingBox, computeBound, Properties::VIRTUAL, __BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", + "", + ""); + 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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "Set the color of the shape. ", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "Get the color of the shape. ", + ""); + I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, + Properties::NON_VIRTUAL, + __void__setTessellationHints__TessellationHints_P1, + "", + ""); + I_Method0(osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, + __TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method0(const osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, + __C5_TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_AttributeFunctor_R1, + "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_PrimitiveFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "", + ""); + 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_OBJECT_REFLECTOR(osg::ShapeDrawable) + I_BaseType(osg::Drawable); + I_BaseType(osg::Drawable); + 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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "Set the color of the shape. ", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "Get the color of the shape. ", + ""); + I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, + Properties::NON_VIRTUAL, + __void__setTessellationHints__TessellationHints_P1, + "", + ""); + I_Method0(osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, + __TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method0(const osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, + __C5_TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_AttributeFunctor_R1, + "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_PrimitiveFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "Set the color of the shape. ", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "Get the color of the shape. ", + ""); + I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, + Properties::NON_VIRTUAL, + __void__setTessellationHints__TessellationHints_P1, + "", + ""); + I_Method0(osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, + __TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method0(const osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, + __C5_TessellationHints_P1__getTessellationHints, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_AttributeFunctor_R1, + "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_PrimitiveFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "", ""); I_SimpleProperty(const osg::Vec4 &, Color, __C5_Vec4_R1__getColor, @@ -140,6 +441,7 @@ BEGIN_ENUM_REFLECTOR(osg::TessellationHints::TessellationMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____TessellationHints, "", @@ -151,13 +453,13 @@ BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -166,13 +468,449 @@ BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setTessellationMode__TessellationMode, + "", + ""); + I_Method0(osg::TessellationHints::TessellationMode, getTessellationMode, + Properties::NON_VIRTUAL, + __TessellationMode__getTessellationMode, + "", + ""); + I_Method1(void, setDetailRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setDetailRatio__float, + "", + ""); + I_Method0(float, getDetailRatio, + Properties::NON_VIRTUAL, + __float__getDetailRatio, + "", + ""); + I_Method1(void, setTargetNumFaces, IN, unsigned int, target, + Properties::NON_VIRTUAL, + __void__setTargetNumFaces__unsigned_int, + "", + ""); + I_Method0(unsigned int, getTargetNumFaces, + Properties::NON_VIRTUAL, + __unsigned_int__getTargetNumFaces, + "", + ""); + I_Method1(void, setCreateFrontFace, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateFrontFace__bool, + "", + ""); + I_Method0(bool, getCreateFrontFace, + Properties::NON_VIRTUAL, + __bool__getCreateFrontFace, + "", + ""); + I_Method1(void, setCreateBackFace, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBackFace__bool, + "", + ""); + I_Method0(bool, getCreateBackFace, + Properties::NON_VIRTUAL, + __bool__getCreateBackFace, + "", + ""); + I_Method1(void, setCreateNormals, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateNormals__bool, + "", + ""); + I_Method0(bool, getCreateNormals, + Properties::NON_VIRTUAL, + __bool__getCreateNormals, + "", + ""); + I_Method1(void, setCreateTextureCoords, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateTextureCoords__bool, + "", + ""); + I_Method0(bool, getCreateTextureCoords, + Properties::NON_VIRTUAL, + __bool__getCreateTextureCoords, + "", + ""); + I_Method1(void, setCreateTop, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateTop__bool, + "", + ""); + I_Method0(bool, getCreateTop, + Properties::NON_VIRTUAL, + __bool__getCreateTop, + "", + ""); + I_Method1(void, setCreateBody, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBody__bool, + "", + ""); + I_Method0(bool, getCreateBody, + Properties::NON_VIRTUAL, + __bool__getCreateBody, + "", + ""); + I_Method1(void, setCreateBottom, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBottom__bool, + "", + ""); + I_Method0(bool, getCreateBottom, + Properties::NON_VIRTUAL, + __bool__getCreateBottom, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTessellationMode, IN, osg::TessellationHints::TessellationMode, mode, + Properties::NON_VIRTUAL, + __void__setTessellationMode__TessellationMode, + "", + ""); + I_Method0(osg::TessellationHints::TessellationMode, getTessellationMode, + Properties::NON_VIRTUAL, + __TessellationMode__getTessellationMode, + "", + ""); + I_Method1(void, setDetailRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setDetailRatio__float, + "", + ""); + I_Method0(float, getDetailRatio, + Properties::NON_VIRTUAL, + __float__getDetailRatio, + "", + ""); + I_Method1(void, setTargetNumFaces, IN, unsigned int, target, + Properties::NON_VIRTUAL, + __void__setTargetNumFaces__unsigned_int, + "", + ""); + I_Method0(unsigned int, getTargetNumFaces, + Properties::NON_VIRTUAL, + __unsigned_int__getTargetNumFaces, + "", + ""); + I_Method1(void, setCreateFrontFace, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateFrontFace__bool, + "", + ""); + I_Method0(bool, getCreateFrontFace, + Properties::NON_VIRTUAL, + __bool__getCreateFrontFace, + "", + ""); + I_Method1(void, setCreateBackFace, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBackFace__bool, + "", + ""); + I_Method0(bool, getCreateBackFace, + Properties::NON_VIRTUAL, + __bool__getCreateBackFace, + "", + ""); + I_Method1(void, setCreateNormals, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateNormals__bool, + "", + ""); + I_Method0(bool, getCreateNormals, + Properties::NON_VIRTUAL, + __bool__getCreateNormals, + "", + ""); + I_Method1(void, setCreateTextureCoords, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateTextureCoords__bool, + "", + ""); + I_Method0(bool, getCreateTextureCoords, + Properties::NON_VIRTUAL, + __bool__getCreateTextureCoords, + "", + ""); + I_Method1(void, setCreateTop, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateTop__bool, + "", + ""); + I_Method0(bool, getCreateTop, + Properties::NON_VIRTUAL, + __bool__getCreateTop, + "", + ""); + I_Method1(void, setCreateBody, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBody__bool, + "", + ""); + I_Method0(bool, getCreateBody, + Properties::NON_VIRTUAL, + __bool__getCreateBody, + "", + ""); + I_Method1(void, setCreateBottom, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBottom__bool, + "", + ""); + I_Method0(bool, getCreateBottom, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osg::TessellationHints::TessellationMode) + I_EnumLabel(osg::TessellationHints::USE_SHAPE_DEFAULTS); + I_EnumLabel(osg::TessellationHints::USE_TARGET_NUM_FACES); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTessellationMode, IN, osg::TessellationHints::TessellationMode, mode, + Properties::NON_VIRTUAL, + __void__setTessellationMode__TessellationMode, + "", + ""); + I_Method0(osg::TessellationHints::TessellationMode, getTessellationMode, + Properties::NON_VIRTUAL, + __TessellationMode__getTessellationMode, + "", + ""); + I_Method1(void, setDetailRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setDetailRatio__float, + "", + ""); + I_Method0(float, getDetailRatio, + Properties::NON_VIRTUAL, + __float__getDetailRatio, + "", + ""); + I_Method1(void, setTargetNumFaces, IN, unsigned int, target, + Properties::NON_VIRTUAL, + __void__setTargetNumFaces__unsigned_int, + "", + ""); + I_Method0(unsigned int, getTargetNumFaces, + Properties::NON_VIRTUAL, + __unsigned_int__getTargetNumFaces, + "", + ""); + I_Method1(void, setCreateFrontFace, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateFrontFace__bool, + "", + ""); + I_Method0(bool, getCreateFrontFace, + Properties::NON_VIRTUAL, + __bool__getCreateFrontFace, + "", + ""); + I_Method1(void, setCreateBackFace, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBackFace__bool, + "", + ""); + I_Method0(bool, getCreateBackFace, + Properties::NON_VIRTUAL, + __bool__getCreateBackFace, + "", + ""); + I_Method1(void, setCreateNormals, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateNormals__bool, + "", + ""); + I_Method0(bool, getCreateNormals, + Properties::NON_VIRTUAL, + __bool__getCreateNormals, + "", + ""); + I_Method1(void, setCreateTextureCoords, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateTextureCoords__bool, + "", + ""); + I_Method0(bool, getCreateTextureCoords, + Properties::NON_VIRTUAL, + __bool__getCreateTextureCoords, + "", + ""); + I_Method1(void, setCreateTop, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateTop__bool, + "", + ""); + I_Method0(bool, getCreateTop, + Properties::NON_VIRTUAL, + __bool__getCreateTop, + "", + ""); + I_Method1(void, setCreateBody, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBody__bool, + "", + ""); + I_Method0(bool, getCreateBody, + Properties::NON_VIRTUAL, + __bool__getCreateBody, + "", + ""); + I_Method1(void, setCreateBottom, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setCreateBottom__bool, + "", + ""); + I_Method0(bool, getCreateBottom, + Properties::NON_VIRTUAL, + __bool__getCreateBottom, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setTessellationMode, IN, osg::TessellationHints::TessellationMode, mode, Properties::NON_VIRTUAL, __void__setTessellationMode__TessellationMode, diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index 64e34c4fe..eb51eacab 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -10,16 +10,17 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include #include #include #include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -39,6 +40,1739 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::State) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____State, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__GraphicsContext_P1, + "Set the graphics context associated with that owns this State object. ", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getGraphicsContext, + "Get the graphics context associated with that owns this State object. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const graphics context associated with that owns this State object. ", + ""); + I_Method1(void, setContextID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getContextID, + "Get the current OpenGL context unique ID. ", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__pushStateSet__C5_StateSet_P1, + "Push stateset onto state stack. ", + ""); + I_Method0(void, popStateSet, + Properties::NON_VIRTUAL, + __void__popStateSet, + "Pop stateset off state stack. ", + ""); + I_Method0(void, popAllStateSets, + Properties::NON_VIRTUAL, + __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_Method0(unsigned int, getStateSetStackSize, + Properties::NON_VIRTUAL, + __unsigned_int__getStateSetStackSize, + "Get the number of StateSet's on the StateSet stack. ", + ""); + I_Method1(void, popStateSetStackToSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__popStateSetStackToSize__unsigned_int, + "Pop StateSet's for the StateSet stack till its size equals the specified size. ", + ""); + I_Method0(osg::State::StateSetStack &, getStateSetStack, + Properties::NON_VIRTUAL, + __StateSetStack_R1__getStateSetStack, + "Get the StateSet stack. ", + ""); + I_Method1(void, captureCurrentState, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + __void__captureCurrentState__StateSet_R1, + "Copy the modes and attributes which capture the current state. ", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "reset the state object to an empty stack. ", + ""); + I_Method0(const osg::Viewport *, getCurrentViewport, + Properties::NON_VIRTUAL, + __C5_Viewport_P1__getCurrentViewport, + "", + ""); + I_Method1(void, setInitialViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__setInitialViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getInitialViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInitialViewMatrix, + "", + ""); + I_Method0(const osg::Matrix &, getInitialInverseViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInitialInverseViewMatrix, + "", + ""); + I_Method1(void, applyProjectionMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__applyProjectionMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getProjectionMatrix, + "", + ""); + I_Method1(void, applyModelViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__applyModelViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getModelViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getModelViewMatrix, + "", + ""); + I_Method0(osg::Polytope, getViewFrustum, + Properties::NON_VIRTUAL, + __Polytope__getViewFrustum, + "", + ""); + I_Method1(void, apply, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__apply__C5_StateSet_P1, + "Apply stateset. ", + ""); + I_Method0(void, apply, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(bool, getGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, + "", + ""); + I_Method2(bool, applyMode, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method2(bool, getGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, + "", + ""); + I_Method3(bool, applyTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + __bool__applyTextureMode__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(void, setGlobalDefaultAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultAttribute__C5_StateAttribute_P1, + "", + ""); + I_MethodWithDefaults2(const osg::StateAttribute *, getGlobalDefaultAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getGlobalDefaultAttribute__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method1(bool, applyAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__applyAttribute__C5_StateAttribute_P1, + "Apply an attribute if required. ", + ""); + I_Method2(void, setGlobalDefaultTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getGlobalDefaultTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method2(bool, applyTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__applyTextureAttribute__unsigned_int__C5_StateAttribute_P1, + "", + ""); + I_Method2(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyAllModes, + "Dirty the modes previously applied in osg::State. ", + ""); + I_Method0(void, dirtyAllAttributes, + Properties::NON_VIRTUAL, + __void__dirtyAllAttributes, + "Dirty the modes attributes previously applied in osg::State. ", + ""); + I_Method0(void, disableAllVertexArrays, + Properties::NON_VIRTUAL, + __void__disableAllVertexArrays, + "disable the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", + ""); + I_Method0(void, dirtyAllVertexArrays, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableVertexPointer, + "wrapper around glDisableClientState(GL_VERTEX_ARRAY). ", + "note, only updates values that change. "); + I_Method0(void, dirtyVertexPointer, + Properties::NON_VIRTUAL, + __void__dirtyVertexPointer, + "", + ""); + I_Method3(void, setNormalPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __void__setNormalPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_NORMAL_ARRAY);glNormalPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableNormalPointer, + Properties::NON_VIRTUAL, + __void__disableNormalPointer, + "wrapper around glDisableClientState(GL_NORMAL_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyNormalPointer, + Properties::NON_VIRTUAL, + __void__dirtyNormalPointer, + "", + ""); + I_Method4(void, setColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableColorPointer, + "wrapper around glDisableClientState(GL_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyColorPointer, + Properties::NON_VIRTUAL, + __void__dirtyColorPointer, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method4(void, setSecondaryColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableSecondaryColorPointer, + "wrapper around glDisableClientState(GL_SECONDARY_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtySecondaryColorPointer, + Properties::NON_VIRTUAL, + __void__dirtySecondaryColorPointer, + "", + ""); + I_Method3(void, setIndexPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __void__setIndexPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_INDEX_ARRAY);glIndexPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableIndexPointer, + Properties::NON_VIRTUAL, + __void__disableIndexPointer, + "wrapper around glDisableClientState(GL_INDEX_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyIndexPointer, + Properties::NON_VIRTUAL, + __void__dirtyIndexPointer, + "", + ""); + I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method3(void, setFogCoordPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableFogCoordPointer, + "wrapper around glDisableClientState(GL_FOG_COORDINATE_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyFogCoordPointer, + Properties::NON_VIRTUAL, + __void__dirtyFogCoordPointer, + "", + ""); + I_Method5(void, setTexCoordPointer, IN, unsigned int, unit, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyTexCoordPointer__unsigned_int, + "", + ""); + I_Method1(void, disableTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__disableTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__dirtyTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(bool, setActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getActiveTextureUnit, + "Get the current texture unit. ", + ""); + I_Method1(bool, setClientActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableVertexAttribPointer__unsigned_int, + "wrapper around DisableVertexAttribArrayARB(index); note, only updates values that change. ", + ""); + I_Method1(void, disableVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__disableVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__dirtyVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method0(bool, isVertexBufferObjectSupported, + Properties::NON_VIRTUAL, + __bool__isVertexBufferObjectSupported, + "", + ""); + I_Method1(void, setLastAppliedProgramObject, IN, const osg::Program::PerContextProgram *, program, + Properties::NON_VIRTUAL, + __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1, + "", + ""); + I_Method0(const osg::Program::PerContextProgram *, getLastAppliedProgramObject, + Properties::NON_VIRTUAL, + __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr, + Properties::NON_VIRTUAL, + __void__setAbortRenderingPtr__bool_P1, + "Set flag for early termination of the draw traversal. ", + ""); + I_Method0(bool, getAbortRendering, + Properties::NON_VIRTUAL, + __bool__getAbortRendering, + "Get flag for early termination of the draw traversal, if true steps should be taken to complete rendering early. ", + ""); + I_Method1(void, setDynamicObjectRenderingCompletedCallback, IN, osg::State::DynamicObjectRenderingCompletedCallback *, cb, + Properties::NON_VIRTUAL, + __void__setDynamicObjectRenderingCompletedCallback__DynamicObjectRenderingCompletedCallback_P1, + "Set the callback to be called when the dynamic object count hits 0. ", + ""); + I_Method0(osg::State::DynamicObjectRenderingCompletedCallback *, getDynamicObjectRenderingCompletedCallback, + Properties::NON_VIRTUAL, + __DynamicObjectRenderingCompletedCallback_P1__getDynamicObjectRenderingCompletedCallback, + "Get the callback to be called when the dynamic object count hits 0. ", + ""); + I_MethodWithDefaults2(void, setDynamicObjectCount, IN, unsigned int, count, , IN, bool, callCallbackOnZero, false, + Properties::NON_VIRTUAL, + __void__setDynamicObjectCount__unsigned_int__bool, + "Set the number of dynamic objects that will be rendered in this graphics context this frame. ", + ""); + I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, + __unsigned_int__getDynamicObjectCount, + "Get the number of dynamic objects that will be rendered in this graphics context this frame. ", + ""); + I_Method0(void, decrementDynamicObjectCount, + Properties::NON_VIRTUAL, + __void__decrementDynamicObjectCount, + "Decrement the number of dynamic objects left to render this frame, and once the count goes to zero call the DynamicObjectRenderingCompletedCallback to inform of completion. ", + ""); + I_Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check, + Properties::NON_VIRTUAL, + __void__setCheckForGLErrors__CheckForGLErrors, + "Set whether and how often OpenGL errors should be checked for. ", + ""); + I_Method0(osg::State::CheckForGLErrors, getCheckForGLErrors, + Properties::NON_VIRTUAL, + __CheckForGLErrors__getCheckForGLErrors, + "Get whether and how often OpenGL errors should be checked for. ", + ""); + I_Method1(bool, checkGLErrors, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__C5_char_P1, + "", + ""); + I_Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__StateAttribute_GLMode, + "", + ""); + I_Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__C5_StateAttribute_P1, + "", + ""); + I_Constructor0(____State, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__GraphicsContext_P1, + "Set the graphics context associated with that owns this State object. ", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getGraphicsContext, + "Get the graphics context associated with that owns this State object. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const graphics context associated with that owns this State object. ", + ""); + I_Method1(void, setContextID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getContextID, + "Get the current OpenGL context unique ID. ", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__pushStateSet__C5_StateSet_P1, + "Push stateset onto state stack. ", + ""); + I_Method0(void, popStateSet, + Properties::NON_VIRTUAL, + __void__popStateSet, + "Pop stateset off state stack. ", + ""); + I_Method0(void, popAllStateSets, + Properties::NON_VIRTUAL, + __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_Method0(unsigned int, getStateSetStackSize, + Properties::NON_VIRTUAL, + __unsigned_int__getStateSetStackSize, + "Get the number of StateSet's on the StateSet stack. ", + ""); + I_Method1(void, popStateSetStackToSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__popStateSetStackToSize__unsigned_int, + "Pop StateSet's for the StateSet stack till its size equals the specified size. ", + ""); + I_Method0(osg::State::StateSetStack &, getStateSetStack, + Properties::NON_VIRTUAL, + __StateSetStack_R1__getStateSetStack, + "Get the StateSet stack. ", + ""); + I_Method1(void, captureCurrentState, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + __void__captureCurrentState__StateSet_R1, + "Copy the modes and attributes which capture the current state. ", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "reset the state object to an empty stack. ", + ""); + I_Method0(const osg::Viewport *, getCurrentViewport, + Properties::NON_VIRTUAL, + __C5_Viewport_P1__getCurrentViewport, + "", + ""); + I_Method1(void, setInitialViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__setInitialViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getInitialViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInitialViewMatrix, + "", + ""); + I_Method0(const osg::Matrix &, getInitialInverseViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInitialInverseViewMatrix, + "", + ""); + I_Method1(void, applyProjectionMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__applyProjectionMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getProjectionMatrix, + "", + ""); + I_Method1(void, applyModelViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__applyModelViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getModelViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getModelViewMatrix, + "", + ""); + I_Method0(osg::Polytope, getViewFrustum, + Properties::NON_VIRTUAL, + __Polytope__getViewFrustum, + "", + ""); + I_Method1(void, apply, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__apply__C5_StateSet_P1, + "Apply stateset. ", + ""); + I_Method0(void, apply, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(bool, getGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, + "", + ""); + I_Method2(bool, applyMode, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method2(bool, getGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, + "", + ""); + I_Method3(bool, applyTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + __bool__applyTextureMode__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(void, setGlobalDefaultAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultAttribute__C5_StateAttribute_P1, + "", + ""); + I_MethodWithDefaults2(const osg::StateAttribute *, getGlobalDefaultAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getGlobalDefaultAttribute__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method1(bool, applyAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__applyAttribute__C5_StateAttribute_P1, + "Apply an attribute if required. ", + ""); + I_Method2(void, setGlobalDefaultTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getGlobalDefaultTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method2(bool, applyTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__applyTextureAttribute__unsigned_int__C5_StateAttribute_P1, + "", + ""); + I_Method2(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyAllModes, + "Dirty the modes previously applied in osg::State. ", + ""); + I_Method0(void, dirtyAllAttributes, + Properties::NON_VIRTUAL, + __void__dirtyAllAttributes, + "Dirty the modes attributes previously applied in osg::State. ", + ""); + I_Method0(void, disableAllVertexArrays, + Properties::NON_VIRTUAL, + __void__disableAllVertexArrays, + "disable the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", + ""); + I_Method0(void, dirtyAllVertexArrays, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableVertexPointer, + "wrapper around glDisableClientState(GL_VERTEX_ARRAY). ", + "note, only updates values that change. "); + I_Method0(void, dirtyVertexPointer, + Properties::NON_VIRTUAL, + __void__dirtyVertexPointer, + "", + ""); + I_Method3(void, setNormalPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __void__setNormalPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_NORMAL_ARRAY);glNormalPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableNormalPointer, + Properties::NON_VIRTUAL, + __void__disableNormalPointer, + "wrapper around glDisableClientState(GL_NORMAL_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyNormalPointer, + Properties::NON_VIRTUAL, + __void__dirtyNormalPointer, + "", + ""); + I_Method4(void, setColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableColorPointer, + "wrapper around glDisableClientState(GL_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyColorPointer, + Properties::NON_VIRTUAL, + __void__dirtyColorPointer, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method4(void, setSecondaryColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableSecondaryColorPointer, + "wrapper around glDisableClientState(GL_SECONDARY_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtySecondaryColorPointer, + Properties::NON_VIRTUAL, + __void__dirtySecondaryColorPointer, + "", + ""); + I_Method3(void, setIndexPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __void__setIndexPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_INDEX_ARRAY);glIndexPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableIndexPointer, + Properties::NON_VIRTUAL, + __void__disableIndexPointer, + "wrapper around glDisableClientState(GL_INDEX_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyIndexPointer, + Properties::NON_VIRTUAL, + __void__dirtyIndexPointer, + "", + ""); + I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method3(void, setFogCoordPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableFogCoordPointer, + "wrapper around glDisableClientState(GL_FOG_COORDINATE_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyFogCoordPointer, + Properties::NON_VIRTUAL, + __void__dirtyFogCoordPointer, + "", + ""); + I_Method5(void, setTexCoordPointer, IN, unsigned int, unit, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyTexCoordPointer__unsigned_int, + "", + ""); + I_Method1(void, disableTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__disableTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__dirtyTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(bool, setActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getActiveTextureUnit, + "Get the current texture unit. ", + ""); + I_Method1(bool, setClientActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableVertexAttribPointer__unsigned_int, + "wrapper around DisableVertexAttribArrayARB(index); note, only updates values that change. ", + ""); + I_Method1(void, disableVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__disableVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__dirtyVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method0(bool, isVertexBufferObjectSupported, + Properties::NON_VIRTUAL, + __bool__isVertexBufferObjectSupported, + "", + ""); + I_Method1(void, setLastAppliedProgramObject, IN, const osg::Program::PerContextProgram *, program, + Properties::NON_VIRTUAL, + __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1, + "", + ""); + I_Method0(const osg::Program::PerContextProgram *, getLastAppliedProgramObject, + Properties::NON_VIRTUAL, + __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr, + Properties::NON_VIRTUAL, + __void__setAbortRenderingPtr__bool_P1, + "Set flag for early termination of the draw traversal. ", + ""); + I_Method0(bool, getAbortRendering, + Properties::NON_VIRTUAL, + __bool__getAbortRendering, + "Get flag for early termination of the draw traversal, if true steps should be taken to complete rendering early. ", + ""); + I_Method1(void, setDynamicObjectRenderingCompletedCallback, IN, osg::State::DynamicObjectRenderingCompletedCallback *, cb, + Properties::NON_VIRTUAL, + __void__setDynamicObjectRenderingCompletedCallback__DynamicObjectRenderingCompletedCallback_P1, + "Set the callback to be called when the dynamic object count hits 0. ", + ""); + I_Method0(osg::State::DynamicObjectRenderingCompletedCallback *, getDynamicObjectRenderingCompletedCallback, + Properties::NON_VIRTUAL, + __DynamicObjectRenderingCompletedCallback_P1__getDynamicObjectRenderingCompletedCallback, + "Get the callback to be called when the dynamic object count hits 0. ", + ""); + I_MethodWithDefaults2(void, setDynamicObjectCount, IN, unsigned int, count, , IN, bool, callCallbackOnZero, false, + Properties::NON_VIRTUAL, + __void__setDynamicObjectCount__unsigned_int__bool, + "Set the number of dynamic objects that will be rendered in this graphics context this frame. ", + ""); + I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, + __unsigned_int__getDynamicObjectCount, + "Get the number of dynamic objects that will be rendered in this graphics context this frame. ", + ""); + I_Method0(void, decrementDynamicObjectCount, + Properties::NON_VIRTUAL, + __void__decrementDynamicObjectCount, + "Decrement the number of dynamic objects left to render this frame, and once the count goes to zero call the DynamicObjectRenderingCompletedCallback to inform of completion. ", + ""); + I_Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check, + Properties::NON_VIRTUAL, + __void__setCheckForGLErrors__CheckForGLErrors, + "Set whether and how often OpenGL errors should be checked for. ", + ""); + I_Method0(osg::State::CheckForGLErrors, getCheckForGLErrors, + Properties::NON_VIRTUAL, + __CheckForGLErrors__getCheckForGLErrors, + "Get whether and how often OpenGL errors should be checked for. ", + ""); + I_Method1(bool, checkGLErrors, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__C5_char_P1, + "", + ""); + I_Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__StateAttribute_GLMode, + "", + ""); + I_Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __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(unsigned int, DynamicObjectCount, + __unsigned_int__getDynamicObjectCount, + 0); + I_SimpleProperty(osg::State::DynamicObjectRenderingCompletedCallback *, DynamicObjectRenderingCompletedCallback, + __DynamicObjectRenderingCompletedCallback_P1__getDynamicObjectRenderingCompletedCallback, + __void__setDynamicObjectRenderingCompletedCallback__DynamicObjectRenderingCompletedCallback_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::State::StateSetStack &, StateSetStack, + __StateSetStack_R1__getStateSetStack, + 0); + I_SimpleProperty(unsigned int, StateSetStackSize, + __unsigned_int__getStateSetStackSize, + 0); + I_SimpleProperty(osg::Polytope, ViewFrustum, + __Polytope__getViewFrustum, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< const osg::StateSet * >, osg::State::StateSetStack); + +BEGIN_ENUM_REFLECTOR(osg::State::CheckForGLErrors) + I_EnumLabel(osg::State::NEVER_CHECK_GL_ERRORS); + I_EnumLabel(osg::State::ONCE_PER_FRAME); + I_EnumLabel(osg::State::ONCE_PER_ATTRIBUTE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::State) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____State, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__GraphicsContext_P1, + "Set the graphics context associated with that owns this State object. ", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getGraphicsContext, + "Get the graphics context associated with that owns this State object. ", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_GraphicsContext_P1__getGraphicsContext, + "Get the const graphics context associated with that owns this State object. ", + ""); + I_Method1(void, setContextID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getContextID, + "Get the current OpenGL context unique ID. ", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__pushStateSet__C5_StateSet_P1, + "Push stateset onto state stack. ", + ""); + I_Method0(void, popStateSet, + Properties::NON_VIRTUAL, + __void__popStateSet, + "Pop stateset off state stack. ", + ""); + I_Method0(void, popAllStateSets, + Properties::NON_VIRTUAL, + __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_Method0(unsigned int, getStateSetStackSize, + Properties::NON_VIRTUAL, + __unsigned_int__getStateSetStackSize, + "Get the number of StateSet's on the StateSet stack. ", + ""); + I_Method1(void, popStateSetStackToSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__popStateSetStackToSize__unsigned_int, + "Pop StateSet's for the StateSet stack till its size equals the specified size. ", + ""); + I_Method0(osg::State::StateSetStack &, getStateSetStack, + Properties::NON_VIRTUAL, + __StateSetStack_R1__getStateSetStack, + "Get the StateSet stack. ", + ""); + I_Method1(void, captureCurrentState, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + __void__captureCurrentState__StateSet_R1, + "Copy the modes and attributes which capture the current state. ", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "reset the state object to an empty stack. ", + ""); + I_Method0(const osg::Viewport *, getCurrentViewport, + Properties::NON_VIRTUAL, + __C5_Viewport_P1__getCurrentViewport, + "", + ""); + I_Method1(void, setInitialViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__setInitialViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getInitialViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInitialViewMatrix, + "", + ""); + I_Method0(const osg::Matrix &, getInitialInverseViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInitialInverseViewMatrix, + "", + ""); + I_Method1(void, applyProjectionMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__applyProjectionMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getProjectionMatrix, + "", + ""); + I_Method1(void, applyModelViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__applyModelViewMatrix__C5_osg_RefMatrix_P1, + "", + ""); + I_Method0(const osg::Matrix &, getModelViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getModelViewMatrix, + "", + ""); + I_Method0(osg::Polytope, getViewFrustum, + Properties::NON_VIRTUAL, + __Polytope__getViewFrustum, + "", + ""); + I_Method1(void, apply, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__apply__C5_StateSet_P1, + "Apply stateset. ", + ""); + I_Method0(void, apply, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(bool, getGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, + "", + ""); + I_Method2(bool, applyMode, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method2(bool, getGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, + "", + ""); + I_Method3(bool, applyTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + __bool__applyTextureMode__unsigned_int__StateAttribute_GLMode__bool, + "", + ""); + I_Method1(void, setGlobalDefaultAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__setGlobalDefaultAttribute__C5_StateAttribute_P1, + "", + ""); + I_MethodWithDefaults2(const osg::StateAttribute *, getGlobalDefaultAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getGlobalDefaultAttribute__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method1(bool, applyAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__applyAttribute__C5_StateAttribute_P1, + "Apply an attribute if required. ", + ""); + I_Method2(void, setGlobalDefaultTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getGlobalDefaultTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, + "", + ""); + I_Method2(bool, applyTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__applyTextureAttribute__unsigned_int__C5_StateAttribute_P1, + "", + ""); + I_Method2(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyAllModes, + "Dirty the modes previously applied in osg::State. ", + ""); + I_Method0(void, dirtyAllAttributes, + Properties::NON_VIRTUAL, + __void__dirtyAllAttributes, + "Dirty the modes attributes previously applied in osg::State. ", + ""); + I_Method0(void, disableAllVertexArrays, + Properties::NON_VIRTUAL, + __void__disableAllVertexArrays, + "disable the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", + ""); + I_Method0(void, dirtyAllVertexArrays, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableVertexPointer, + "wrapper around glDisableClientState(GL_VERTEX_ARRAY). ", + "note, only updates values that change. "); + I_Method0(void, dirtyVertexPointer, + Properties::NON_VIRTUAL, + __void__dirtyVertexPointer, + "", + ""); + I_Method3(void, setNormalPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __void__setNormalPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_NORMAL_ARRAY);glNormalPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableNormalPointer, + Properties::NON_VIRTUAL, + __void__disableNormalPointer, + "wrapper around glDisableClientState(GL_NORMAL_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyNormalPointer, + Properties::NON_VIRTUAL, + __void__dirtyNormalPointer, + "", + ""); + I_Method4(void, setColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableColorPointer, + "wrapper around glDisableClientState(GL_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyColorPointer, + Properties::NON_VIRTUAL, + __void__dirtyColorPointer, + "", + ""); + I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, + __bool__isSecondaryColorSupported, + "", + ""); + I_Method4(void, setSecondaryColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableSecondaryColorPointer, + "wrapper around glDisableClientState(GL_SECONDARY_COLOR_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtySecondaryColorPointer, + Properties::NON_VIRTUAL, + __void__dirtySecondaryColorPointer, + "", + ""); + I_Method3(void, setIndexPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __void__setIndexPointer__GLenum__GLsizei__C5_GLvoid_P1, + "wrapper around glEnableClientState(GL_INDEX_ARRAY);glIndexPointer(. ", + ".); note, only updates values that change. "); + I_Method0(void, disableIndexPointer, + Properties::NON_VIRTUAL, + __void__disableIndexPointer, + "wrapper around glDisableClientState(GL_INDEX_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyIndexPointer, + Properties::NON_VIRTUAL, + __void__dirtyIndexPointer, + "", + ""); + I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method3(void, setFogCoordPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableFogCoordPointer, + "wrapper around glDisableClientState(GL_FOG_COORDINATE_ARRAY); note, only updates values that change. ", + ""); + I_Method0(void, dirtyFogCoordPointer, + Properties::NON_VIRTUAL, + __void__dirtyFogCoordPointer, + "", + ""); + I_Method5(void, setTexCoordPointer, IN, unsigned int, unit, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__dirtyTexCoordPointer__unsigned_int, + "", + ""); + I_Method1(void, disableTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__disableTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__dirtyTexCoordPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(bool, setActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getActiveTextureUnit, + "Get the current texture unit. ", + ""); + I_Method1(bool, setClientActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__disableVertexAttribPointer__unsigned_int, + "wrapper around DisableVertexAttribArrayARB(index); note, only updates values that change. ", + ""); + I_Method1(void, disableVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__disableVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method1(void, dirtyVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__dirtyVertexAttribPointersAboveAndIncluding__unsigned_int, + "", + ""); + I_Method0(bool, isVertexBufferObjectSupported, + Properties::NON_VIRTUAL, + __bool__isVertexBufferObjectSupported, + "", + ""); + I_Method1(void, setLastAppliedProgramObject, IN, const osg::Program::PerContextProgram *, program, + Properties::NON_VIRTUAL, + __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1, + "", + ""); + I_Method0(const osg::Program::PerContextProgram *, getLastAppliedProgramObject, + Properties::NON_VIRTUAL, + __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, + "", + ""); + I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getUniformLocation__C5_std_string_R1, + "", + ""); + I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __GLint__getAttribLocation__C5_std_string_R1, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr, + Properties::NON_VIRTUAL, + __void__setAbortRenderingPtr__bool_P1, + "Set flag for early termination of the draw traversal. ", + ""); + I_Method0(bool, getAbortRendering, + Properties::NON_VIRTUAL, + __bool__getAbortRendering, + "Get flag for early termination of the draw traversal, if true steps should be taken to complete rendering early. ", + ""); + I_Method1(void, setDynamicObjectRenderingCompletedCallback, IN, osg::State::DynamicObjectRenderingCompletedCallback *, cb, + Properties::NON_VIRTUAL, + __void__setDynamicObjectRenderingCompletedCallback__DynamicObjectRenderingCompletedCallback_P1, + "Set the callback to be called when the dynamic object count hits 0. ", + ""); + I_Method0(osg::State::DynamicObjectRenderingCompletedCallback *, getDynamicObjectRenderingCompletedCallback, + Properties::NON_VIRTUAL, + __DynamicObjectRenderingCompletedCallback_P1__getDynamicObjectRenderingCompletedCallback, + "Get the callback to be called when the dynamic object count hits 0. ", + ""); + I_MethodWithDefaults2(void, setDynamicObjectCount, IN, unsigned int, count, , IN, bool, callCallbackOnZero, false, + Properties::NON_VIRTUAL, + __void__setDynamicObjectCount__unsigned_int__bool, + "Set the number of dynamic objects that will be rendered in this graphics context this frame. ", + ""); + I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, + __unsigned_int__getDynamicObjectCount, + "Get the number of dynamic objects that will be rendered in this graphics context this frame. ", + ""); + I_Method0(void, decrementDynamicObjectCount, + Properties::NON_VIRTUAL, + __void__decrementDynamicObjectCount, + "Decrement the number of dynamic objects left to render this frame, and once the count goes to zero call the DynamicObjectRenderingCompletedCallback to inform of completion. ", + ""); + I_Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check, + Properties::NON_VIRTUAL, + __void__setCheckForGLErrors__CheckForGLErrors, + "Set whether and how often OpenGL errors should be checked for. ", + ""); + I_Method0(osg::State::CheckForGLErrors, getCheckForGLErrors, + Properties::NON_VIRTUAL, + __CheckForGLErrors__getCheckForGLErrors, + "Get whether and how often OpenGL errors should be checked for. ", + ""); + I_Method1(bool, checkGLErrors, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__C5_char_P1, + "", + ""); + I_Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__StateAttribute_GLMode, + "", + ""); + I_Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __bool__checkGLErrors__C5_StateAttribute_P1, + "", + ""); I_Constructor0(____State, "", ""); @@ -665,6 +2399,7 @@ BEGIN_OBJECT_REFLECTOR(osg::State) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____DynamicObjectRenderingCompletedCallback, "", @@ -674,7 +2409,28 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallb __void__completed__osg_State_P1, "", ""); + I_Method1(void, completed, IN, osg::State *, x, + Properties::PURE_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< const osg::StateSet * >); +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____DynamicObjectRenderingCompletedCallback, + "", + ""); + I_Method1(void, completed, IN, osg::State *, x, + Properties::PURE_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); + I_Method1(void, completed, IN, osg::State *, x, + Properties::PURE_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); +END_REFLECTOR diff --git a/src/osgWrappers/osg/StateSet.cpp b/src/osgWrappers/osg/StateSet.cpp index 2742a3de7..852a58817 100644 --- a/src/osgWrappers/osg/StateSet.cpp +++ b/src/osgWrappers/osg/StateSet.cpp @@ -10,13 +10,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -26,532 +24,8 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::Object * >, osg::StateSet::ParentList); - -TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList); - -TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefAttributePair); - -TYPE_NAME_ALIAS(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >, osg::StateSet::AttributeList); - -TYPE_NAME_ALIAS(std::vector< osg::StateSet::ModeList >, osg::StateSet::TextureModeList); - -TYPE_NAME_ALIAS(std::vector< osg::StateSet::AttributeList >, osg::StateSet::TextureAttributeList); - -TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefUniformPair); - -TYPE_NAME_ALIAS(std::map< std::string COMMA osg::StateSet::RefUniformPair >, osg::StateSet::UniformList); - -BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) - I_EnumLabel(osg::StateSet::DEFAULT_BIN); - I_EnumLabel(osg::StateSet::OPAQUE_BIN); - I_EnumLabel(osg::StateSet::TRANSPARENT_BIN); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) - I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); - I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); - I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::StateSet) - I_BaseType(osg::Object); - 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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __C5_ParentList_R1__getParents, - "Get the parent list of this StateSet. ", - ""); - I_Method0(osg::StateSet::ParentList, getParents, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __Object_P1__getParent__unsigned_int, - "", - ""); - I_Method1(const osg::Object *, getParent, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __unsigned_int__getNumParents, - "Get the number of parents of this StateSet. ", - "the number of parents of this StateSet. "); - I_Method0(void, computeDataVariance, - Properties::VIRTUAL, - __void__computeDataVariance, - "Compute the DataVariance based on an assestment of callback etc. ", - ""); - I_Method0(void, setGlobalDefaults, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__clear, - "Clear the StateSet of all modes and attributes. ", - ""); - I_Method1(void, merge, IN, const osg::StateSet &, rhs, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setModeList__ModeList_R1, - "Set the list of all GLModes contained in this StateSet. ", - ""); - I_Method0(osg::StateSet::ModeList &, getModeList, - Properties::NON_VIRTUAL, - __ModeList_R1__getModeList, - "Return the list of all GLModes contained in this StateSet. ", - ""); - I_Method0(const osg::StateSet::ModeList &, getModeList, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__removeAttribute__StateAttribute_Type__unsigned_int, - "remove attribute of specified type from StateSet. ", - ""); - I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, - Properties::NON_VIRTUAL, - __void__removeAttribute__StateAttribute_P1, - "remove attribute from StateSet. ", - ""); - I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setAttributeList__AttributeList_R1, - "set the list of all StateAttributes contained in this StateSet. ", - ""); - I_Method0(osg::StateSet::AttributeList &, getAttributeList, - Properties::NON_VIRTUAL, - __AttributeList_R1__getAttributeList, - "return the list of all StateAttributes contained in this StateSet. ", - ""); - I_Method0(const osg::StateSet::AttributeList &, getAttributeList, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setTextureModeList__TextureModeList_R1, - "set the list of all Texture related GLModes contained in this StateSet. ", - ""); - I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, - Properties::NON_VIRTUAL, - __TextureModeList_R1__getTextureModeList, - "return the list of all Texture related GLModes contained in this StateSet. ", - ""); - I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setTextureAttributeList__TextureAttributeList_R1, - "Set the list of all Texture related StateAttributes contained in this StateSet. ", - ""); - I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, - Properties::NON_VIRTUAL, - __TextureAttributeList_R1__getTextureAttributeList, - "Return the list of all Texture related StateAttributes contained in this StateSet. ", - ""); - I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__removeUniform__C5_std_string_R1, - "remove uniform of specified name from StateSet. ", - ""); - I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, - Properties::NON_VIRTUAL, - __void__removeUniform__Uniform_P1, - "remove Uniform from StateSet. ", - ""); - I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setUniformList__UniformList_R1, - "set the list of all Uniforms contained in this StateSet. ", - ""); - I_Method0(osg::StateSet::UniformList &, getUniformList, - Properties::NON_VIRTUAL, - __UniformList_R1__getUniformList, - "return the list of all Uniforms contained in this StateSet. ", - ""); - I_Method0(const osg::StateSet::UniformList &, getUniformList, - Properties::NON_VIRTUAL, - __C5_UniformList_R1__getUniformList, - "return the const list of all Uniforms contained in this const StateSet. ", - ""); - I_Method1(void, setRenderingHint, IN, int, hint, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, - "Set the render bin details. ", - ""); - I_Method0(void, setRenderBinToInherit, - Properties::NON_VIRTUAL, - __void__setRenderBinToInherit, - "Set the render bin details to inherit. ", - ""); - I_Method0(bool, useRenderBinDetails, - Properties::NON_VIRTUAL, - __bool__useRenderBinDetails, - "Get whether the render bin details are set and should be used. ", - ""); - I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, - Properties::NON_VIRTUAL, - __void__setRenderBinMode__RenderBinMode, - "Set the render bin mode. ", - ""); - I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, - Properties::NON_VIRTUAL, - __RenderBinMode__getRenderBinMode, - "Get the render bin mode. ", - ""); - I_Method1(void, setBinNumber, IN, int, num, - Properties::NON_VIRTUAL, - __void__setBinNumber__int, - "Set the render bin number. ", - ""); - I_Method0(int, getBinNumber, - Properties::NON_VIRTUAL, - __int__getBinNumber, - "Get the render bin number. ", - ""); - I_Method1(void, setBinName, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __void__setBinName__C5_std_string_R1, - "Set the render bin name. ", - ""); - I_Method0(const std::string &, getBinName, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getBinName, - "Get the render bin name. ", - ""); - I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __Callback_P1__getUpdateCallback, - "Get the non const Update Callback. ", - ""); - I_Method0(const osg::StateSet::Callback *, getUpdateCallback, - Properties::NON_VIRTUAL, - __C5_Callback_P1__getUpdateCallback, - "Get the const Update Callback. ", - ""); - I_Method0(bool, requiresUpdateTraversal, - Properties::NON_VIRTUAL, - __bool__requiresUpdateTraversal, - "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", - ""); - I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __Callback_P1__getEventCallback, - "Get the non const Event Callback. ", - ""); - I_Method0(const osg::StateSet::Callback *, getEventCallback, - Properties::NON_VIRTUAL, - __C5_Callback_P1__getEventCallback, - "Get the const Event Callback. ", - ""); - I_Method0(bool, requiresEventTraversal, - Properties::NON_VIRTUAL, - __bool__requiresEventTraversal, - "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", - ""); - I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, setThreadSafeRefUnref, IN, bool, threadSafe, - Properties::VIRTUAL, - __void__setThreadSafeRefUnref__bool, - "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::NON_VIRTUAL, - __void__compileGLObjects__State_R1, - "call compile on all StateAttributes contained within this StateSet. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __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_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(bool, ThreadSafeRefUnref, - 0, - __void__setThreadSafeRefUnref__bool); - 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_VirtualBaseType(osg::Object); I_Constructor0(____Callback, "", @@ -563,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -578,105 +52,113 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateAttribute >) - I_Constructor0(____ref_ptr, +BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) + I_VirtualBaseType(osg::Object); + I_VirtualBaseType(osg::Object); + I_Constructor0(____Callback, "", ""); - I_Constructor1(IN, osg::StateAttribute *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_CopyOp_R1, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osg::StateAttribute > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____Callback, "", ""); - I_Method0(osg::StateAttribute *, get, - Properties::NON_VIRTUAL, - __T_P1__get, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, "", ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, "", ""); - I_Method0(osg::StateAttribute *, release, - Properties::NON_VIRTUAL, - __T_P1__release, + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::StateAttribute > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, "", ""); - I_SimpleProperty(osg::StateAttribute *, , - __T_P1__get, - 0); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Uniform >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osg::Uniform *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Uniform > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Uniform *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osg::Uniform *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Uniform > &, rp, - Properties::NON_VIRTUAL, - __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); -STD_MAP_REFLECTOR(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >); - -STD_MAP_REFLECTOR(std::map< std::string COMMA osg::StateSet::RefUniformPair >); - -STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >); - -STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >); - -STD_VECTOR_REFLECTOR(std::vector< osg::Object * >); - -STD_VECTOR_REFLECTOR(std::vector< osg::StateSet::AttributeList >); - -STD_VECTOR_REFLECTOR(std::vector< osg::StateSet::ModeList >); - diff --git a/src/osgWrappers/osg/Stats.cpp b/src/osgWrappers/osg/Stats.cpp index d25e294b2..9bd79a443 100644 --- a/src/osgWrappers/osg/Stats.cpp +++ b/src/osgWrappers/osg/Stats.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -28,6 +29,91 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA bool >, osg::Stats::CollectMap); BEGIN_OBJECT_REFLECTOR(osg::Stats) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, const std::string &, name, + Properties::NON_EXPLICIT, + ____Stats__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const std::string &, name, IN, unsigned int, numberOfFrames, + ____Stats__C5_std_string_R1__unsigned_int, + "", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getName, + "", + ""); + I_Method1(void, allocate, IN, unsigned int, numberOfFrames, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int, + "", + ""); + I_Method0(int, getEarliestFrameNumber, + Properties::NON_VIRTUAL, + __int__getEarliestFrameNumber, + "", + ""); + I_Method0(int, getLatestFrameNumber, + Properties::NON_VIRTUAL, + __int__getLatestFrameNumber, + "", + ""); + I_Method3(bool, setAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double, value, + Properties::NON_VIRTUAL, + __bool__setAttribute__int__C5_std_string_R1__double, + "", + ""); + I_Method3(bool, getAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double &, value, + Properties::NON_VIRTUAL, + __bool__getAttribute__int__C5_std_string_R1__double_R1, + "", + ""); + I_MethodWithDefaults3(bool, getAveragedAttribute, IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, + __bool__getAveragedAttribute__C5_std_string_R1__double_R1__bool, + "", + ""); + I_MethodWithDefaults5(bool, getAveragedAttribute, IN, int, startFrameNumber, , IN, int, endFrameNumber, , IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, + __bool__getAveragedAttribute__int__int__C5_std_string_R1__double_R1__bool, + "", + ""); + I_Method1(osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __AttributeMap_R1__getAttributeMap__int, + "", + ""); + I_Method1(const osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __C5_AttributeMap_R1__getAttributeMap__int, + "", + ""); + I_Method2(void, collectStats, IN, const std::string &, str, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__collectStats__C5_std_string_R1__bool, + "", + ""); + I_Method1(bool, collectStats, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __bool__collectStats__C5_std_string_R1, + "", + ""); + I_MethodWithDefaults2(void, report, IN, std::ostream &, out, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, + __void__report__std_ostream_R1__C5_char_P1, + "", + ""); + I_MethodWithDefaults3(void, report, IN, std::ostream &, out, , IN, unsigned int, frameNumber, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, + __void__report__std_ostream_R1__unsigned_int__C5_char_P1, + "", + ""); I_Constructor1(IN, const std::string &, name, Properties::NON_EXPLICIT, ____Stats__C5_std_string_R1, @@ -123,9 +209,191 @@ BEGIN_OBJECT_REFLECTOR(osg::Stats) __void__setName__C5_std_string_R1); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< std::string COMMA bool >); +TYPE_NAME_ALIAS(std::map< std::string COMMA double >, osg::Stats::AttributeMap); -STD_MAP_REFLECTOR(std::map< std::string COMMA double >); +TYPE_NAME_ALIAS(std::vector< osg::Stats::AttributeMap >, osg::Stats::AttributeMapList); -STD_VECTOR_REFLECTOR(std::vector< osg::Stats::AttributeMap >); +TYPE_NAME_ALIAS(std::map< std::string COMMA bool >, osg::Stats::CollectMap); + +BEGIN_OBJECT_REFLECTOR(osg::Stats) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, const std::string &, name, + Properties::NON_EXPLICIT, + ____Stats__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const std::string &, name, IN, unsigned int, numberOfFrames, + ____Stats__C5_std_string_R1__unsigned_int, + "", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getName, + "", + ""); + I_Method1(void, allocate, IN, unsigned int, numberOfFrames, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int, + "", + ""); + I_Method0(int, getEarliestFrameNumber, + Properties::NON_VIRTUAL, + __int__getEarliestFrameNumber, + "", + ""); + I_Method0(int, getLatestFrameNumber, + Properties::NON_VIRTUAL, + __int__getLatestFrameNumber, + "", + ""); + I_Method3(bool, setAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double, value, + Properties::NON_VIRTUAL, + __bool__setAttribute__int__C5_std_string_R1__double, + "", + ""); + I_Method3(bool, getAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double &, value, + Properties::NON_VIRTUAL, + __bool__getAttribute__int__C5_std_string_R1__double_R1, + "", + ""); + I_MethodWithDefaults3(bool, getAveragedAttribute, IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, + __bool__getAveragedAttribute__C5_std_string_R1__double_R1__bool, + "", + ""); + I_MethodWithDefaults5(bool, getAveragedAttribute, IN, int, startFrameNumber, , IN, int, endFrameNumber, , IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, + __bool__getAveragedAttribute__int__int__C5_std_string_R1__double_R1__bool, + "", + ""); + I_Method1(osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __AttributeMap_R1__getAttributeMap__int, + "", + ""); + I_Method1(const osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __C5_AttributeMap_R1__getAttributeMap__int, + "", + ""); + I_Method2(void, collectStats, IN, const std::string &, str, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__collectStats__C5_std_string_R1__bool, + "", + ""); + I_Method1(bool, collectStats, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __bool__collectStats__C5_std_string_R1, + "", + ""); + I_MethodWithDefaults2(void, report, IN, std::ostream &, out, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, + __void__report__std_ostream_R1__C5_char_P1, + "", + ""); + I_MethodWithDefaults3(void, report, IN, std::ostream &, out, , IN, unsigned int, frameNumber, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, + __void__report__std_ostream_R1__unsigned_int__C5_char_P1, + "", + ""); + I_Constructor1(IN, const std::string &, name, + Properties::NON_EXPLICIT, + ____Stats__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const std::string &, name, IN, unsigned int, numberOfFrames, + ____Stats__C5_std_string_R1__unsigned_int, + "", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getName, + "", + ""); + I_Method1(void, allocate, IN, unsigned int, numberOfFrames, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int, + "", + ""); + I_Method0(int, getEarliestFrameNumber, + Properties::NON_VIRTUAL, + __int__getEarliestFrameNumber, + "", + ""); + I_Method0(int, getLatestFrameNumber, + Properties::NON_VIRTUAL, + __int__getLatestFrameNumber, + "", + ""); + I_Method3(bool, setAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double, value, + Properties::NON_VIRTUAL, + __bool__setAttribute__int__C5_std_string_R1__double, + "", + ""); + I_Method3(bool, getAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double &, value, + Properties::NON_VIRTUAL, + __bool__getAttribute__int__C5_std_string_R1__double_R1, + "", + ""); + I_MethodWithDefaults3(bool, getAveragedAttribute, IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, + __bool__getAveragedAttribute__C5_std_string_R1__double_R1__bool, + "", + ""); + I_MethodWithDefaults5(bool, getAveragedAttribute, IN, int, startFrameNumber, , IN, int, endFrameNumber, , IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, + __bool__getAveragedAttribute__int__int__C5_std_string_R1__double_R1__bool, + "", + ""); + I_Method1(osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __AttributeMap_R1__getAttributeMap__int, + "", + ""); + I_Method1(const osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __C5_AttributeMap_R1__getAttributeMap__int, + "", + ""); + I_Method2(void, collectStats, IN, const std::string &, str, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__collectStats__C5_std_string_R1__bool, + "", + ""); + I_Method1(bool, collectStats, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __bool__collectStats__C5_std_string_R1, + "", + ""); + I_MethodWithDefaults2(void, report, IN, std::ostream &, out, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, + __void__report__std_ostream_R1__C5_char_P1, + "", + ""); + I_MethodWithDefaults3(void, report, IN, std::ostream &, out, , IN, unsigned int, frameNumber, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, + __void__report__std_ostream_R1__unsigned_int__C5_char_P1, + "", + ""); + I_SimpleProperty(int, EarliestFrameNumber, + __int__getEarliestFrameNumber, + 0); + I_SimpleProperty(int, LatestFrameNumber, + __int__getLatestFrameNumber, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); +END_REFLECTOR diff --git a/src/osgWrappers/osg/StencilTwoSided.cpp b/src/osgWrappers/osg/StencilTwoSided.cpp index b70ea5658..1e3ca4323 100644 --- a/src/osgWrappers/osg/StencilTwoSided.cpp +++ b/src/osgWrappers/osg/StencilTwoSided.cpp @@ -10,10 +10,11 @@ #include #include -#include -#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -52,6 +53,7 @@ BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Operation) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____StencilTwoSided, "", @@ -63,32 +65,32 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -183,8 +185,148 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_Constructor0(____StencilTwoSided, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StencilTwoSided &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StencilTwoSided__C5_StencilTwoSided_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, IN, int, ref, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setFunction__Face__Function__int__unsigned_int, + "", + ""); + I_Method2(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, + Properties::NON_VIRTUAL, + __void__setFunction__Face__Function, + "", + ""); + I_Method1(osg::StencilTwoSided::Function, getFunction, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Function__getFunction__Face, + "", + ""); + I_Method2(void, setFunctionRef, IN, osg::StencilTwoSided::Face, face, IN, int, ref, + Properties::NON_VIRTUAL, + __void__setFunctionRef__Face__int, + "", + ""); + I_Method1(int, getFunctionRef, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __int__getFunctionRef__Face, + "", + ""); + I_Method2(void, setFunctionMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setFunctionMask__Face__unsigned_int, + "", + ""); + I_Method1(unsigned int, getFunctionMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __unsigned_int__getFunctionMask__Face, + "", + ""); + I_Method4(void, setOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, IN, osg::StencilTwoSided::Operation, zfail, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, + __void__setOperation__Face__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_Method2(void, setStencilFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, + Properties::NON_VIRTUAL, + __void__setStencilFailOperation__Face__Operation, + "set the operation when the stencil test fails. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilFailOperation__Face, + "get the operation when the stencil test fails. ", + ""); + I_Method2(void, setStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zfail, + Properties::NON_VIRTUAL, + __void__setStencilPassAndDepthFailOperation__Face__Operation, + "set the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilPassAndDepthFailOperation__Face, + "get the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method2(void, setStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, + __void__setStencilPassAndDepthPassOperation__Face__Operation, + "set the operation when both the stencil test and the depth test pass. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilPassAndDepthPassOperation__Face, + "get the operation when both the stencil test and the depth test pass. ", + ""); + I_Method2(void, setWriteMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setWriteMask__Face__unsigned_int, + "", + ""); + I_Method1(unsigned int, getWriteMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __unsigned_int__getWriteMask__Face, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_StaticMethod2(osg::StencilTwoSided::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::StencilTwoSided::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_StaticMethod2(osg::StencilTwoSided::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. ", @@ -217,7 +359,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) __Operation__getStencilPassAndDepthPassOperation__Face, __void__setStencilPassAndDepthPassOperation__Face__Operation, 0); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, __Type__getType, 0); I_IndexedProperty(unsigned int, WriteMask, @@ -226,45 +368,346 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided::Extensions) - I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, - "", - ""); - I_Constructor1(IN, const osg::StencilTwoSided::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::StencilTwoSided::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, - "", - ""); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtenions__unsigned_int, - "", - ""); - I_Method1(void, setStencilTwoSidedSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setStencilTwoSidedSupported__bool, - "", - ""); - I_Method0(bool, isStencilTwoSidedSupported, - Properties::NON_VIRTUAL, - __bool__isStencilTwoSidedSupported, - "", - ""); - I_Method1(void, glActiveStencilFace, IN, GLenum, face, - Properties::NON_VIRTUAL, - __void__glActiveStencilFace__GLenum, - "", - ""); - I_SimpleProperty(bool, StencilTwoSidedSupported, - 0, - __void__setStencilTwoSidedSupported__bool); +BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Face) + I_EnumLabel(osg::StencilTwoSided::FRONT); + I_EnumLabel(osg::StencilTwoSided::BACK); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Function) + I_EnumLabel(osg::StencilTwoSided::NEVER); + I_EnumLabel(osg::StencilTwoSided::LESS); + I_EnumLabel(osg::StencilTwoSided::EQUAL); + I_EnumLabel(osg::StencilTwoSided::LEQUAL); + I_EnumLabel(osg::StencilTwoSided::GREATER); + I_EnumLabel(osg::StencilTwoSided::NOTEQUAL); + I_EnumLabel(osg::StencilTwoSided::GEQUAL); + I_EnumLabel(osg::StencilTwoSided::ALWAYS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Operation) + I_EnumLabel(osg::StencilTwoSided::KEEP); + I_EnumLabel(osg::StencilTwoSided::ZERO); + I_EnumLabel(osg::StencilTwoSided::REPLACE); + I_EnumLabel(osg::StencilTwoSided::INCR); + I_EnumLabel(osg::StencilTwoSided::DECR); + I_EnumLabel(osg::StencilTwoSided::INVERT); + I_EnumLabel(osg::StencilTwoSided::INCR_WRAP); + I_EnumLabel(osg::StencilTwoSided::DECR_WRAP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____StencilTwoSided, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StencilTwoSided &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StencilTwoSided__C5_StencilTwoSided_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, IN, int, ref, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setFunction__Face__Function__int__unsigned_int, + "", + ""); + I_Method2(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, + Properties::NON_VIRTUAL, + __void__setFunction__Face__Function, + "", + ""); + I_Method1(osg::StencilTwoSided::Function, getFunction, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Function__getFunction__Face, + "", + ""); + I_Method2(void, setFunctionRef, IN, osg::StencilTwoSided::Face, face, IN, int, ref, + Properties::NON_VIRTUAL, + __void__setFunctionRef__Face__int, + "", + ""); + I_Method1(int, getFunctionRef, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __int__getFunctionRef__Face, + "", + ""); + I_Method2(void, setFunctionMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setFunctionMask__Face__unsigned_int, + "", + ""); + I_Method1(unsigned int, getFunctionMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __unsigned_int__getFunctionMask__Face, + "", + ""); + I_Method4(void, setOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, IN, osg::StencilTwoSided::Operation, zfail, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, + __void__setOperation__Face__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_Method2(void, setStencilFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, + Properties::NON_VIRTUAL, + __void__setStencilFailOperation__Face__Operation, + "set the operation when the stencil test fails. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilFailOperation__Face, + "get the operation when the stencil test fails. ", + ""); + I_Method2(void, setStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zfail, + Properties::NON_VIRTUAL, + __void__setStencilPassAndDepthFailOperation__Face__Operation, + "set the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilPassAndDepthFailOperation__Face, + "get the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method2(void, setStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, + __void__setStencilPassAndDepthPassOperation__Face__Operation, + "set the operation when both the stencil test and the depth test pass. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilPassAndDepthPassOperation__Face, + "get the operation when both the stencil test and the depth test pass. ", + ""); + I_Method2(void, setWriteMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setWriteMask__Face__unsigned_int, + "", + ""); + I_Method1(unsigned int, getWriteMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __unsigned_int__getWriteMask__Face, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Constructor0(____StencilTwoSided, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StencilTwoSided &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StencilTwoSided__C5_StencilTwoSided_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, IN, int, ref, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setFunction__Face__Function__int__unsigned_int, + "", + ""); + I_Method2(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, + Properties::NON_VIRTUAL, + __void__setFunction__Face__Function, + "", + ""); + I_Method1(osg::StencilTwoSided::Function, getFunction, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Function__getFunction__Face, + "", + ""); + I_Method2(void, setFunctionRef, IN, osg::StencilTwoSided::Face, face, IN, int, ref, + Properties::NON_VIRTUAL, + __void__setFunctionRef__Face__int, + "", + ""); + I_Method1(int, getFunctionRef, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __int__getFunctionRef__Face, + "", + ""); + I_Method2(void, setFunctionMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setFunctionMask__Face__unsigned_int, + "", + ""); + I_Method1(unsigned int, getFunctionMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __unsigned_int__getFunctionMask__Face, + "", + ""); + I_Method4(void, setOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, IN, osg::StencilTwoSided::Operation, zfail, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, + __void__setOperation__Face__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_Method2(void, setStencilFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, + Properties::NON_VIRTUAL, + __void__setStencilFailOperation__Face__Operation, + "set the operation when the stencil test fails. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilFailOperation__Face, + "get the operation when the stencil test fails. ", + ""); + I_Method2(void, setStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zfail, + Properties::NON_VIRTUAL, + __void__setStencilPassAndDepthFailOperation__Face__Operation, + "set the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilPassAndDepthFailOperation__Face, + "get the operation when the stencil test passes but the depth test fails. ", + ""); + I_Method2(void, setStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, + __void__setStencilPassAndDepthPassOperation__Face__Operation, + "set the operation when both the stencil test and the depth test pass. ", + ""); + I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __Operation__getStencilPassAndDepthPassOperation__Face, + "get the operation when both the stencil test and the depth test pass. ", + ""); + I_Method2(void, setWriteMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setWriteMask__Face__unsigned_int, + "", + ""); + I_Method1(unsigned int, getWriteMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, + __unsigned_int__getWriteMask__Face, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_StaticMethod2(osg::StencilTwoSided::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::StencilTwoSided::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_StaticMethod2(osg::StencilTwoSided::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::StencilTwoSided::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_IndexedProperty(osg::StencilTwoSided::Function, Function, + __Function__getFunction__Face, + __void__setFunction__Face__Function, + 0); + I_IndexedProperty(unsigned int, FunctionMask, + __unsigned_int__getFunctionMask__Face, + __void__setFunctionMask__Face__unsigned_int, + 0); + I_IndexedProperty(int, FunctionRef, + __int__getFunctionRef__Face, + __void__setFunctionRef__Face__int, + 0); + I_IndexedProperty(osg::StencilTwoSided::Operation, StencilFailOperation, + __Operation__getStencilFailOperation__Face, + __void__setStencilFailOperation__Face__Operation, + 0); + I_IndexedProperty(osg::StencilTwoSided::Operation, StencilPassAndDepthFailOperation, + __Operation__getStencilPassAndDepthFailOperation__Face, + __void__setStencilPassAndDepthFailOperation__Face__Operation, + 0); + I_IndexedProperty(osg::StencilTwoSided::Operation, StencilPassAndDepthPassOperation, + __Operation__getStencilPassAndDepthPassOperation__Face, + __void__setStencilPassAndDepthPassOperation__Face__Operation, + 0); + I_SimpleProperty(Type, Type, + __Type__getType, + 0); + I_IndexedProperty(unsigned int, WriteMask, + __unsigned_int__getWriteMask__Face, + __void__setWriteMask__Face__unsigned_int, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Switch.cpp b/src/osgWrappers/osg/Switch.cpp index 0e2ffc6a1..6062e4208 100644 --- a/src/osgWrappers/osg/Switch.cpp +++ b/src/osgWrappers/osg/Switch.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -28,6 +29,7 @@ TYPE_NAME_ALIAS(std::vector< bool >, osg::Switch::ValueList); BEGIN_OBJECT_REFLECTOR(osg::Switch) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____Switch, "", @@ -39,37 +41,37 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method1(void, setNewChildDefaultValue, IN, bool, value, Properties::NON_VIRTUAL, @@ -84,8 +86,8 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) I_Method1(bool, addChild, IN, osg::Node *, child, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__addChild__Node_P1__bool, @@ -94,8 +96,8 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__insertChild__unsigned_int__Node_P1__bool, @@ -104,8 +106,8 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setValue__unsigned_int__bool, @@ -154,8 +156,135 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, + __bool__addChild__Node_P1__bool, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1, + "", + ""); + I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1__bool, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setValue__unsigned_int__bool, + "", + ""); + I_Method1(bool, getValue, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__getValue__unsigned_int, + "", + ""); + I_Method2(void, setChildValue, IN, const osg::Node *, child, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setChildValue__C5_Node_P1__bool, + "", + ""); + I_Method1(bool, getChildValue, IN, const osg::Node *, child, + Properties::NON_VIRTUAL, + __bool__getChildValue__C5_Node_P1, + "", + ""); + I_Method0(bool, setAllChildrenOff, + Properties::NON_VIRTUAL, + __bool__setAllChildrenOff, + "Set all the children off (false), and set the new default child value to off (false). ", + ""); + I_Method0(bool, setAllChildrenOn, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__setSingleChildOn__unsigned_int, + "Set a single child on, switch off all other children. ", + ""); + I_Method1(void, setValueList, IN, const osg::Switch::ValueList &, values, + Properties::NON_VIRTUAL, + __void__setValueList__C5_ValueList_R1, + "", + ""); + I_Method0(const osg::Switch::ValueList &, getValueList, + Properties::NON_VIRTUAL, + __C5_ValueList_R1__getValueList, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); I_IndexedProperty(bool, ChildValue, __bool__getChildValue__C5_Node_P1, __void__setChildValue__C5_Node_P1__bool, @@ -175,5 +304,281 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) __void__setValueList__C5_ValueList_R1); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< bool >); +TYPE_NAME_ALIAS(std::vector< bool >, osg::Switch::ValueList); + +BEGIN_OBJECT_REFLECTOR(osg::Switch) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, + __bool__addChild__Node_P1__bool, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1, + "", + ""); + I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1__bool, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setValue__unsigned_int__bool, + "", + ""); + I_Method1(bool, getValue, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__getValue__unsigned_int, + "", + ""); + I_Method2(void, setChildValue, IN, const osg::Node *, child, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setChildValue__C5_Node_P1__bool, + "", + ""); + I_Method1(bool, getChildValue, IN, const osg::Node *, child, + Properties::NON_VIRTUAL, + __bool__getChildValue__C5_Node_P1, + "", + ""); + I_Method0(bool, setAllChildrenOff, + Properties::NON_VIRTUAL, + __bool__setAllChildrenOff, + "Set all the children off (false), and set the new default child value to off (false). ", + ""); + I_Method0(bool, setAllChildrenOn, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__setSingleChildOn__unsigned_int, + "Set a single child on, switch off all other children. ", + ""); + I_Method1(void, setValueList, IN, const osg::Switch::ValueList &, values, + Properties::NON_VIRTUAL, + __void__setValueList__C5_ValueList_R1, + "", + ""); + I_Method0(const osg::Switch::ValueList &, getValueList, + Properties::NON_VIRTUAL, + __C5_ValueList_R1__getValueList, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__NodeVisitor_R1, + "", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__Node_P1, + "", + ""); + I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, + __bool__addChild__Node_P1__bool, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1, + "", + ""); + I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1__bool, + "", + ""); + I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, + __bool__removeChildren__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setValue__unsigned_int__bool, + "", + ""); + I_Method1(bool, getValue, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__getValue__unsigned_int, + "", + ""); + I_Method2(void, setChildValue, IN, const osg::Node *, child, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setChildValue__C5_Node_P1__bool, + "", + ""); + I_Method1(bool, getChildValue, IN, const osg::Node *, child, + Properties::NON_VIRTUAL, + __bool__getChildValue__C5_Node_P1, + "", + ""); + I_Method0(bool, setAllChildrenOff, + Properties::NON_VIRTUAL, + __bool__setAllChildrenOff, + "Set all the children off (false), and set the new default child value to off (false). ", + ""); + I_Method0(bool, setAllChildrenOn, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__setSingleChildOn__unsigned_int, + "Set a single child on, switch off all other children. ", + ""); + I_Method1(void, setValueList, IN, const osg::Switch::ValueList &, values, + Properties::NON_VIRTUAL, + __void__setValueList__C5_ValueList_R1, + "", + ""); + I_Method0(const osg::Switch::ValueList &, getValueList, + Properties::NON_VIRTUAL, + __C5_ValueList_R1__getValueList, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __BoundingSphere__computeBound, + "", + ""); + 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 diff --git a/src/osgWrappers/osg/TexEnvCombine.cpp b/src/osgWrappers/osg/TexEnvCombine.cpp index 268f7f263..78630f6d1 100644 --- a/src/osgWrappers/osg/TexEnvCombine.cpp +++ b/src/osgWrappers/osg/TexEnvCombine.cpp @@ -10,13 +10,13 @@ #include #include -#include -#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -60,6 +60,7 @@ BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::OperandParam) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____TexEnvCombine, "", @@ -71,37 +72,37 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __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, Properties::VIRTUAL, @@ -291,8 +292,240 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setCombine_RGB__GLint, + "", + ""); + I_Method1(void, setCombine_Alpha, IN, GLint, cm, + Properties::NON_VIRTUAL, + __void__setCombine_Alpha__GLint, + "", + ""); + I_Method0(GLint, getCombine_RGB, + Properties::NON_VIRTUAL, + __GLint__getCombine_RGB, + "", + ""); + I_Method0(GLint, getCombine_Alpha, + Properties::NON_VIRTUAL, + __GLint__getCombine_Alpha, + "", + ""); + I_Method1(void, setSource0_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource0_RGB__GLint, + "", + ""); + I_Method1(void, setSource1_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource1_RGB__GLint, + "", + ""); + I_Method1(void, setSource2_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource2_RGB__GLint, + "", + ""); + I_Method1(void, setSource0_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource0_Alpha__GLint, + "", + ""); + I_Method1(void, setSource1_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource1_Alpha__GLint, + "", + ""); + I_Method1(void, setSource2_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getSource0_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource0_RGB, + "", + ""); + I_Method0(GLint, getSource1_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource1_RGB, + "", + ""); + I_Method0(GLint, getSource2_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource2_RGB, + "", + ""); + I_Method0(GLint, getSource0_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource0_Alpha, + "", + ""); + I_Method0(GLint, getSource1_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource1_Alpha, + "", + ""); + I_Method0(GLint, getSource2_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource2_Alpha, + "", + ""); + I_Method1(void, setOperand0_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand0_RGB__GLint, + "", + ""); + I_Method1(void, setOperand1_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand1_RGB__GLint, + "", + ""); + I_Method1(void, setOperand2_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand2_RGB__GLint, + "", + ""); + I_Method1(void, setOperand0_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand0_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand1_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand1_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand2_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getOperand0_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand0_RGB, + "", + ""); + I_Method0(GLint, getOperand1_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand1_RGB, + "", + ""); + I_Method0(GLint, getOperand2_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand2_RGB, + "", + ""); + I_Method0(GLint, getOperand0_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand0_Alpha, + "", + ""); + I_Method0(GLint, getOperand1_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand1_Alpha, + "", + ""); + I_Method0(GLint, getOperand2_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand2_Alpha, + "", + ""); + I_Method1(void, setScale_RGB, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale_RGB__float, + "", + ""); + I_Method1(void, setScale_Alpha, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale_Alpha__float, + "", + ""); + I_Method0(float, getScale_RGB, + Properties::NON_VIRTUAL, + __float__getScale_RGB, + "", + ""); + I_Method0(float, getScale_Alpha, + Properties::NON_VIRTUAL, + __float__getScale_Alpha, + "", + ""); + I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setConstantColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getConstantColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getConstantColor, + "", + ""); + I_Method1(void, setConstantColorAsLightDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Vec3__getConstantColorAsLightDirection, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(GLint, Combine_Alpha, __GLint__getCombine_Alpha, __void__setCombine_Alpha__GLint); @@ -347,7 +580,566 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) I_SimpleProperty(GLint, Source2_RGB, __GLint__getSource2_RGB, __void__setSource2_RGB__GLint); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::CombineParam) + I_EnumLabel(osg::TexEnvCombine::REPLACE); + I_EnumLabel(osg::TexEnvCombine::MODULATE); + I_EnumLabel(osg::TexEnvCombine::ADD); + I_EnumLabel(osg::TexEnvCombine::ADD_SIGNED); + I_EnumLabel(osg::TexEnvCombine::INTERPOLATE); + I_EnumLabel(osg::TexEnvCombine::SUBTRACT); + I_EnumLabel(osg::TexEnvCombine::DOT3_RGB); + I_EnumLabel(osg::TexEnvCombine::DOT3_RGBA); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::SourceParam) + I_EnumLabel(osg::TexEnvCombine::CONSTANT); + I_EnumLabel(osg::TexEnvCombine::PRIMARY_COLOR); + I_EnumLabel(osg::TexEnvCombine::PREVIOUS); + I_EnumLabel(osg::TexEnvCombine::TEXTURE); + I_EnumLabel(osg::TexEnvCombine::TEXTURE0); + I_EnumLabel(osg::TexEnvCombine::TEXTURE1); + I_EnumLabel(osg::TexEnvCombine::TEXTURE2); + I_EnumLabel(osg::TexEnvCombine::TEXTURE3); + I_EnumLabel(osg::TexEnvCombine::TEXTURE4); + I_EnumLabel(osg::TexEnvCombine::TEXTURE5); + I_EnumLabel(osg::TexEnvCombine::TEXTURE6); + I_EnumLabel(osg::TexEnvCombine::TEXTURE7); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::OperandParam) + I_EnumLabel(osg::TexEnvCombine::SRC_COLOR); + I_EnumLabel(osg::TexEnvCombine::ONE_MINUS_SRC_COLOR); + I_EnumLabel(osg::TexEnvCombine::SRC_ALPHA); + I_EnumLabel(osg::TexEnvCombine::ONE_MINUS_SRC_ALPHA); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setCombine_RGB__GLint, + "", + ""); + I_Method1(void, setCombine_Alpha, IN, GLint, cm, + Properties::NON_VIRTUAL, + __void__setCombine_Alpha__GLint, + "", + ""); + I_Method0(GLint, getCombine_RGB, + Properties::NON_VIRTUAL, + __GLint__getCombine_RGB, + "", + ""); + I_Method0(GLint, getCombine_Alpha, + Properties::NON_VIRTUAL, + __GLint__getCombine_Alpha, + "", + ""); + I_Method1(void, setSource0_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource0_RGB__GLint, + "", + ""); + I_Method1(void, setSource1_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource1_RGB__GLint, + "", + ""); + I_Method1(void, setSource2_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource2_RGB__GLint, + "", + ""); + I_Method1(void, setSource0_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource0_Alpha__GLint, + "", + ""); + I_Method1(void, setSource1_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource1_Alpha__GLint, + "", + ""); + I_Method1(void, setSource2_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getSource0_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource0_RGB, + "", + ""); + I_Method0(GLint, getSource1_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource1_RGB, + "", + ""); + I_Method0(GLint, getSource2_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource2_RGB, + "", + ""); + I_Method0(GLint, getSource0_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource0_Alpha, + "", + ""); + I_Method0(GLint, getSource1_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource1_Alpha, + "", + ""); + I_Method0(GLint, getSource2_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource2_Alpha, + "", + ""); + I_Method1(void, setOperand0_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand0_RGB__GLint, + "", + ""); + I_Method1(void, setOperand1_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand1_RGB__GLint, + "", + ""); + I_Method1(void, setOperand2_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand2_RGB__GLint, + "", + ""); + I_Method1(void, setOperand0_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand0_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand1_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand1_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand2_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getOperand0_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand0_RGB, + "", + ""); + I_Method0(GLint, getOperand1_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand1_RGB, + "", + ""); + I_Method0(GLint, getOperand2_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand2_RGB, + "", + ""); + I_Method0(GLint, getOperand0_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand0_Alpha, + "", + ""); + I_Method0(GLint, getOperand1_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand1_Alpha, + "", + ""); + I_Method0(GLint, getOperand2_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand2_Alpha, + "", + ""); + I_Method1(void, setScale_RGB, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale_RGB__float, + "", + ""); + I_Method1(void, setScale_Alpha, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale_Alpha__float, + "", + ""); + I_Method0(float, getScale_RGB, + Properties::NON_VIRTUAL, + __float__getScale_RGB, + "", + ""); + I_Method0(float, getScale_Alpha, + Properties::NON_VIRTUAL, + __float__getScale_Alpha, + "", + ""); + I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setConstantColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getConstantColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getConstantColor, + "", + ""); + I_Method1(void, setConstantColorAsLightDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Vec3__getConstantColorAsLightDirection, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setCombine_RGB__GLint, + "", + ""); + I_Method1(void, setCombine_Alpha, IN, GLint, cm, + Properties::NON_VIRTUAL, + __void__setCombine_Alpha__GLint, + "", + ""); + I_Method0(GLint, getCombine_RGB, + Properties::NON_VIRTUAL, + __GLint__getCombine_RGB, + "", + ""); + I_Method0(GLint, getCombine_Alpha, + Properties::NON_VIRTUAL, + __GLint__getCombine_Alpha, + "", + ""); + I_Method1(void, setSource0_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource0_RGB__GLint, + "", + ""); + I_Method1(void, setSource1_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource1_RGB__GLint, + "", + ""); + I_Method1(void, setSource2_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource2_RGB__GLint, + "", + ""); + I_Method1(void, setSource0_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource0_Alpha__GLint, + "", + ""); + I_Method1(void, setSource1_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource1_Alpha__GLint, + "", + ""); + I_Method1(void, setSource2_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, + __void__setSource2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getSource0_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource0_RGB, + "", + ""); + I_Method0(GLint, getSource1_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource1_RGB, + "", + ""); + I_Method0(GLint, getSource2_RGB, + Properties::NON_VIRTUAL, + __GLint__getSource2_RGB, + "", + ""); + I_Method0(GLint, getSource0_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource0_Alpha, + "", + ""); + I_Method0(GLint, getSource1_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource1_Alpha, + "", + ""); + I_Method0(GLint, getSource2_Alpha, + Properties::NON_VIRTUAL, + __GLint__getSource2_Alpha, + "", + ""); + I_Method1(void, setOperand0_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand0_RGB__GLint, + "", + ""); + I_Method1(void, setOperand1_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand1_RGB__GLint, + "", + ""); + I_Method1(void, setOperand2_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand2_RGB__GLint, + "", + ""); + I_Method1(void, setOperand0_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand0_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand1_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand1_Alpha__GLint, + "", + ""); + I_Method1(void, setOperand2_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, + __void__setOperand2_Alpha__GLint, + "", + ""); + I_Method0(GLint, getOperand0_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand0_RGB, + "", + ""); + I_Method0(GLint, getOperand1_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand1_RGB, + "", + ""); + I_Method0(GLint, getOperand2_RGB, + Properties::NON_VIRTUAL, + __GLint__getOperand2_RGB, + "", + ""); + I_Method0(GLint, getOperand0_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand0_Alpha, + "", + ""); + I_Method0(GLint, getOperand1_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand1_Alpha, + "", + ""); + I_Method0(GLint, getOperand2_Alpha, + Properties::NON_VIRTUAL, + __GLint__getOperand2_Alpha, + "", + ""); + I_Method1(void, setScale_RGB, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale_RGB__float, + "", + ""); + I_Method1(void, setScale_Alpha, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale_Alpha__float, + "", + ""); + I_Method0(float, getScale_RGB, + Properties::NON_VIRTUAL, + __float__getScale_RGB, + "", + ""); + I_Method0(float, getScale_Alpha, + Properties::NON_VIRTUAL, + __float__getScale_Alpha, + "", + ""); + I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setConstantColor__C5_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getConstantColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getConstantColor, + "", + ""); + I_Method1(void, setConstantColorAsLightDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Vec3__getConstantColorAsLightDirection, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + 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(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexEnvFilter.cpp b/src/osgWrappers/osg/TexEnvFilter.cpp index 3c07d75ca..7f37cd25e 100644 --- a/src/osgWrappers/osg/TexEnvFilter.cpp +++ b/src/osgWrappers/osg/TexEnvFilter.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, Properties::NON_EXPLICIT, @@ -38,37 +39,37 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __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, Properties::VIRTUAL, @@ -88,12 +89,215 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setLodBias__float, + "", + ""); + I_Method0(float, getLodBias, + Properties::NON_VIRTUAL, + __float__getLodBias, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(float, LodBias, __float__getLodBias, __void__setLodBias__float); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setLodBias__float, + "", + ""); + I_Method0(float, getLodBias, + Properties::NON_VIRTUAL, + __float__getLodBias, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setLodBias__float, + "", + ""); + I_Method0(float, getLodBias, + Properties::NON_VIRTUAL, + __float__getLodBias, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(float, LodBias, + __float__getLodBias, + __void__setLodBias__float); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture.cpp b/src/osgWrappers/osg/Texture.cpp index 9683f1494..9fdc0eb49 100644 --- a/src/osgWrappers/osg/Texture.cpp +++ b/src/osgWrappers/osg/Texture.cpp @@ -10,14 +10,15 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -80,6 +81,7 @@ BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowTextureMode) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____Texture, "", @@ -91,37 +93,369 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) I_Method0(osg::Object *, cloneType, Properties::PURE_VIRTUAL, __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, Properties::PURE_VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __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, + Properties::PURE_VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, + Properties::NON_VIRTUAL, + __void__setWrap__WrapParameter__WrapMode, + "Sets the texture wrap mode. ", + ""); + I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, + Properties::NON_VIRTUAL, + __WrapMode__getWrap__WrapParameter, + "Gets the texture wrap mode. ", + ""); + I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setBorderColor__C5_Vec4_R1, + "Sets the border color. ", + "Only used when wrap mode is CLAMP_TO_BORDER. "); + I_Method0(const osg::Vec4 &, getBorderColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getBorderColor, + "Gets the border color. ", + ""); + I_Method1(void, setBorderWidth, IN, GLint, width, + Properties::NON_VIRTUAL, + __void__setBorderWidth__GLint, + "Sets the border width. ", + ""); + I_Method0(GLint, getBorderWidth, + Properties::NON_VIRTUAL, + __GLint__getBorderWidth, + "", + ""); + I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setFilter__FilterParameter__FilterMode, + "Sets the texture filter mode. ", + ""); + I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, + Properties::NON_VIRTUAL, + __FilterMode__getFilter__FilterParameter, + "Gets the texture filter mode. ", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, anis, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaxAnisotropy, + "Gets the maximum anisotropy value. ", + ""); + I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getUseHardwareMipMapGeneration, + "Gets the hardware mipmap generation hint. ", + ""); + I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getUnRefImageDataAfterApply, + "Gets whether or not apply() unreferences image data. ", + ""); + I_Method1(void, setClientStorageHint, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getClientStorageHint, + "Gets whether to use client storage for the texture. ", + ""); + I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getResizeNonPowerOfTwoHint, + "Gets whether texture will force non power to two images to be resized. ", + ""); + I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __InternalFormatMode__getInternalFormatMode, + "Gets the internal texture format mode. ", + ""); + I_Method1(void, setInternalFormat, IN, GLint, internalFormat, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLint, + "Sets the internal texture format. ", + "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); + I_Method0(GLint, getInternalFormat, + Properties::NON_VIRTUAL, + __GLint__getInternalFormat, + "Gets the internal texture format. ", + ""); + I_Method0(bool, isCompressedInternalFormat, + Properties::NON_VIRTUAL, + __bool__isCompressedInternalFormat, + "Return true if the internal format is one of the compressed formats. ", + ""); + I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getSourceFormat, + "Gets the external source image format. ", + ""); + I_Method1(void, setSourceType, IN, GLenum, sourceType, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getSourceType, + "Gets the external source data type. ", + ""); + I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __TextureObject_P1__getTextureObject__unsigned_int, + "Returns a pointer to the texture object for the current context. ", + ""); + I_Method0(void, dirtyTextureObject, + Properties::NON_VIRTUAL, + __void__dirtyTextureObject, + "Forces a recompile on next apply() of associated OpenGL texture objects. ", + ""); + I_Method0(bool, areAllTextureObjectsLoaded, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getTextureParameterDirty__unsigned_int, + "Gets the dirty flag for the current contextID. ", + ""); + I_Method0(void, dirtyTextureParameters, + Properties::NON_VIRTUAL, + __void__dirtyTextureParameters, + "Force a reset on next apply() of associated OpenGL texture parameters. ", + ""); + I_Method1(void, setShadowComparison, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setShadowCompareFunc__ShadowCompareFunc, + "Sets shadow texture comparison function. ", + ""); + I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, + Properties::NON_VIRTUAL, + __ShadowCompareFunc__getShadowCompareFunc, + "", + ""); + I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, + Properties::NON_VIRTUAL, + __void__setShadowTextureMode__ShadowTextureMode, + "Sets shadow texture mode after comparison. ", + ""); + I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, + Properties::NON_VIRTUAL, + __ShadowTextureMode__getShadowTextureMode, + "", + ""); + I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getShadowAmbient, + "", + ""); + I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + Properties::PURE_VIRTUAL, + __void__setImage__unsigned_int__Image_P1, + "Sets the texture image for the specified face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, + __Image_P1__getImage__unsigned_int, + "Gets the texture image for the specified face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, + __C5_Image_P1__getImage__unsigned_int, + "Gets the const texture image for specified face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to this Texture. ", + ""); + I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setReadPBuffer__GraphicsContext_P1, + "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getReadPBuffer, + "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(const osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__apply__State_R1, + "Texture is a pure virtual base class, apply must be overriden. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "Calls apply(state) to compile the texture. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__takeTextureObjects__TextureObjectListMap_R1, + "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", + ""); + 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, + Properties::PURE_VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::PURE_VIRTUAL, + __osg_Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", ""); I_Method0(GLenum, getTextureTarget, Properties::PURE_VIRTUAL, @@ -453,6 +787,46 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, "", ""); + 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); @@ -518,7 +892,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) I_SimpleProperty(int, TextureWidth, __int__getTextureWidth, 0); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, __Type__getType, 0); I_SimpleProperty(bool, UnRefImageDataAfterApply, @@ -533,242 +907,926 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions) - I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList); + +TYPE_NAME_ALIAS(osg::buffered_object< osg::Texture::TextureObjectList >, osg::Texture::TextureObjectListMap); + +BEGIN_ENUM_REFLECTOR(osg::Texture::WrapParameter) + I_EnumLabel(osg::Texture::WRAP_S); + I_EnumLabel(osg::Texture::WRAP_T); + I_EnumLabel(osg::Texture::WRAP_R); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::WrapMode) + I_EnumLabel(osg::Texture::CLAMP); + I_EnumLabel(osg::Texture::CLAMP_TO_EDGE); + I_EnumLabel(osg::Texture::CLAMP_TO_BORDER); + I_EnumLabel(osg::Texture::REPEAT); + I_EnumLabel(osg::Texture::MIRROR); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::FilterParameter) + I_EnumLabel(osg::Texture::MIN_FILTER); + I_EnumLabel(osg::Texture::MAG_FILTER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::FilterMode) + I_EnumLabel(osg::Texture::LINEAR); + I_EnumLabel(osg::Texture::LINEAR_MIPMAP_LINEAR); + I_EnumLabel(osg::Texture::LINEAR_MIPMAP_NEAREST); + I_EnumLabel(osg::Texture::NEAREST); + I_EnumLabel(osg::Texture::NEAREST_MIPMAP_LINEAR); + I_EnumLabel(osg::Texture::NEAREST_MIPMAP_NEAREST); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatMode) + I_EnumLabel(osg::Texture::USE_IMAGE_DATA_FORMAT); + I_EnumLabel(osg::Texture::USE_USER_DEFINED_FORMAT); + I_EnumLabel(osg::Texture::USE_ARB_COMPRESSION); + I_EnumLabel(osg::Texture::USE_S3TC_DXT1_COMPRESSION); + I_EnumLabel(osg::Texture::USE_S3TC_DXT3_COMPRESSION); + I_EnumLabel(osg::Texture::USE_S3TC_DXT5_COMPRESSION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowCompareFunc) + I_EnumLabel(osg::Texture::LEQUAL); + I_EnumLabel(osg::Texture::GEQUAL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowTextureMode) + I_EnumLabel(osg::Texture::LUMINANCE); + I_EnumLabel(osg::Texture::INTENSITY); + I_EnumLabel(osg::Texture::ALPHA); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Texture, "", ""); - I_Constructor1(IN, const osg::Texture::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, + 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, + Properties::PURE_VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::PURE_VIRTUAL, + __osg_Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::PURE_VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, + Properties::NON_VIRTUAL, + __void__setWrap__WrapParameter__WrapMode, + "Sets the texture wrap mode. ", + ""); + I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, + Properties::NON_VIRTUAL, + __WrapMode__getWrap__WrapParameter, + "Gets the texture wrap mode. ", + ""); + I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setBorderColor__C5_Vec4_R1, + "Sets the border color. ", + "Only used when wrap mode is CLAMP_TO_BORDER. "); + I_Method0(const osg::Vec4 &, getBorderColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getBorderColor, + "Gets the border color. ", + ""); + I_Method1(void, setBorderWidth, IN, GLint, width, + Properties::NON_VIRTUAL, + __void__setBorderWidth__GLint, + "Sets the border width. ", + ""); + I_Method0(GLint, getBorderWidth, + Properties::NON_VIRTUAL, + __GLint__getBorderWidth, + "", + ""); + I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setFilter__FilterParameter__FilterMode, + "Sets the texture filter mode. ", + ""); + I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, + Properties::NON_VIRTUAL, + __FilterMode__getFilter__FilterParameter, + "Gets the texture filter mode. ", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, anis, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaxAnisotropy, + "Gets the maximum anisotropy value. ", + ""); + I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getUseHardwareMipMapGeneration, + "Gets the hardware mipmap generation hint. ", + ""); + I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getUnRefImageDataAfterApply, + "Gets whether or not apply() unreferences image data. ", + ""); + I_Method1(void, setClientStorageHint, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getClientStorageHint, + "Gets whether to use client storage for the texture. ", + ""); + I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getResizeNonPowerOfTwoHint, + "Gets whether texture will force non power to two images to be resized. ", + ""); + I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __InternalFormatMode__getInternalFormatMode, + "Gets the internal texture format mode. ", + ""); + I_Method1(void, setInternalFormat, IN, GLint, internalFormat, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLint, + "Sets the internal texture format. ", + "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); + I_Method0(GLint, getInternalFormat, + Properties::NON_VIRTUAL, + __GLint__getInternalFormat, + "Gets the internal texture format. ", + ""); + I_Method0(bool, isCompressedInternalFormat, + Properties::NON_VIRTUAL, + __bool__isCompressedInternalFormat, + "Return true if the internal format is one of the compressed formats. ", + ""); + I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getSourceFormat, + "Gets the external source image format. ", + ""); + I_Method1(void, setSourceType, IN, GLenum, sourceType, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getSourceType, + "Gets the external source data type. ", + ""); + I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __TextureObject_P1__getTextureObject__unsigned_int, + "Returns a pointer to the texture object for the current context. ", + ""); + I_Method0(void, dirtyTextureObject, + Properties::NON_VIRTUAL, + __void__dirtyTextureObject, + "Forces a recompile on next apply() of associated OpenGL texture objects. ", + ""); + I_Method0(bool, areAllTextureObjectsLoaded, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getTextureParameterDirty__unsigned_int, + "Gets the dirty flag for the current contextID. ", + ""); + I_Method0(void, dirtyTextureParameters, + Properties::NON_VIRTUAL, + __void__dirtyTextureParameters, + "Force a reset on next apply() of associated OpenGL texture parameters. ", + ""); + I_Method1(void, setShadowComparison, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setShadowCompareFunc__ShadowCompareFunc, + "Sets shadow texture comparison function. ", + ""); + I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, + Properties::NON_VIRTUAL, + __ShadowCompareFunc__getShadowCompareFunc, + "", + ""); + I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, + Properties::NON_VIRTUAL, + __void__setShadowTextureMode__ShadowTextureMode, + "Sets shadow texture mode after comparison. ", + ""); + I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, + Properties::NON_VIRTUAL, + __ShadowTextureMode__getShadowTextureMode, + "", + ""); + I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getShadowAmbient, + "", + ""); + I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + Properties::PURE_VIRTUAL, + __void__setImage__unsigned_int__Image_P1, + "Sets the texture image for the specified face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, + __Image_P1__getImage__unsigned_int, + "Gets the texture image for the specified face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, + __C5_Image_P1__getImage__unsigned_int, + "Gets the const texture image for specified face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to this Texture. ", + ""); + I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setReadPBuffer__GraphicsContext_P1, + "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getReadPBuffer, + "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(const osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__apply__State_R1, + "Texture is a pure virtual base class, apply must be overriden. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "Calls apply(state) to compile the texture. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__takeTextureObjects__TextureObjectListMap_R1, + "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", + ""); + I_Constructor0(____Texture, "", ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, + 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, + Properties::PURE_VIRTUAL, + __osg_Object_P1__cloneType, "", ""); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtensions__unsigned_int, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::PURE_VIRTUAL, + __osg_Object_P1__clone__C5_CopyOp_R1, "", ""); - I_Method1(void, setMultiTexturingSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setMultiTexturingSupported__bool, + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, "", ""); - I_Method0(bool, isMultiTexturingSupported, - Properties::NON_VIRTUAL, - __bool__isMultiTexturingSupported, + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, "", ""); - I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTextureFilterAnisotropicSupported__bool, + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, "", ""); - I_Method0(bool, isTextureFilterAnisotropicSupported, - Properties::NON_VIRTUAL, - __bool__isTextureFilterAnisotropicSupported, + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, "", ""); - I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTextureCompressionARBSupported__bool, + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, "", ""); - I_Method0(bool, isTextureCompressionARBSupported, - Properties::NON_VIRTUAL, - __bool__isTextureCompressionARBSupported, + I_Method0(GLenum, getTextureTarget, + Properties::PURE_VIRTUAL, + __GLenum__getTextureTarget, "", ""); - I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTextureCompressionS3TCSupported__bool, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, "", ""); - I_Method0(bool, isTextureCompressionS3TCSupported, - Properties::NON_VIRTUAL, - __bool__isTextureCompressionS3TCSupported, + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, "", ""); - I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTextureMirroredRepeatSupported__bool, + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, "", ""); - I_Method0(bool, isTextureMirroredRepeatSupported, - Properties::NON_VIRTUAL, - __bool__isTextureMirroredRepeatSupported, + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, "", ""); - I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, + I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, Properties::NON_VIRTUAL, - __void__setTextureEdgeClampSupported__bool, + __void__setWrap__WrapParameter__WrapMode, + "Sets the texture wrap mode. ", + ""); + I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, + Properties::NON_VIRTUAL, + __WrapMode__getWrap__WrapParameter, + "Gets the texture wrap mode. ", + ""); + I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setBorderColor__C5_Vec4_R1, + "Sets the border color. ", + "Only used when wrap mode is CLAMP_TO_BORDER. "); + I_Method0(const osg::Vec4 &, getBorderColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getBorderColor, + "Gets the border color. ", + ""); + I_Method1(void, setBorderWidth, IN, GLint, width, + Properties::NON_VIRTUAL, + __void__setBorderWidth__GLint, + "Sets the border width. ", + ""); + I_Method0(GLint, getBorderWidth, + Properties::NON_VIRTUAL, + __GLint__getBorderWidth, "", ""); - I_Method0(bool, isTextureEdgeClampSupported, + I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, Properties::NON_VIRTUAL, - __bool__isTextureEdgeClampSupported, + __void__setFilter__FilterParameter__FilterMode, + "Sets the texture filter mode. ", + ""); + I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, + Properties::NON_VIRTUAL, + __FilterMode__getFilter__FilterParameter, + "Gets the texture filter mode. ", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, anis, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaxAnisotropy, + "Gets the maximum anisotropy value. ", + ""); + I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getUseHardwareMipMapGeneration, + "Gets the hardware mipmap generation hint. ", + ""); + I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getUnRefImageDataAfterApply, + "Gets whether or not apply() unreferences image data. ", + ""); + I_Method1(void, setClientStorageHint, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getClientStorageHint, + "Gets whether to use client storage for the texture. ", + ""); + I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getResizeNonPowerOfTwoHint, + "Gets whether texture will force non power to two images to be resized. ", + ""); + I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __InternalFormatMode__getInternalFormatMode, + "Gets the internal texture format mode. ", + ""); + I_Method1(void, setInternalFormat, IN, GLint, internalFormat, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLint, + "Sets the internal texture format. ", + "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); + I_Method0(GLint, getInternalFormat, + Properties::NON_VIRTUAL, + __GLint__getInternalFormat, + "Gets the internal texture format. ", + ""); + I_Method0(bool, isCompressedInternalFormat, + Properties::NON_VIRTUAL, + __bool__isCompressedInternalFormat, + "Return true if the internal format is one of the compressed formats. ", + ""); + I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getSourceFormat, + "Gets the external source image format. ", + ""); + I_Method1(void, setSourceType, IN, GLenum, sourceType, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GLenum__getSourceType, + "Gets the external source data type. ", + ""); + I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __TextureObject_P1__getTextureObject__unsigned_int, + "Returns a pointer to the texture object for the current context. ", + ""); + I_Method0(void, dirtyTextureObject, + Properties::NON_VIRTUAL, + __void__dirtyTextureObject, + "Forces a recompile on next apply() of associated OpenGL texture objects. ", + ""); + I_Method0(bool, areAllTextureObjectsLoaded, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getTextureParameterDirty__unsigned_int, + "Gets the dirty flag for the current contextID. ", + ""); + I_Method0(void, dirtyTextureParameters, + Properties::NON_VIRTUAL, + __void__dirtyTextureParameters, + "Force a reset on next apply() of associated OpenGL texture parameters. ", + ""); + I_Method1(void, setShadowComparison, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setShadowCompareFunc__ShadowCompareFunc, + "Sets shadow texture comparison function. ", + ""); + I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, + Properties::NON_VIRTUAL, + __ShadowCompareFunc__getShadowCompareFunc, "", ""); - I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, + I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, Properties::NON_VIRTUAL, - __void__setTextureBorderClampSupported__bool, + __void__setShadowTextureMode__ShadowTextureMode, + "Sets shadow texture mode after comparison. ", + ""); + I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, + Properties::NON_VIRTUAL, + __ShadowTextureMode__getShadowTextureMode, "", ""); - I_Method0(bool, isTextureBorderClampSupported, + I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, Properties::NON_VIRTUAL, - __bool__isTextureBorderClampSupported, + __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, + Properties::NON_VIRTUAL, + __float__getShadowAmbient, "", ""); - I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setGenerateMipMapSupported__bool, - "", + I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + Properties::PURE_VIRTUAL, + __void__setImage__unsigned_int__Image_P1, + "Sets the texture image for the specified face. ", ""); - I_Method0(bool, isGenerateMipMapSupported, - Properties::NON_VIRTUAL, - __bool__isGenerateMipMapSupported, - "", + I_Method1(osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, + __Image_P1__getImage__unsigned_int, + "Gets the texture image for the specified face. ", ""); - I_Method1(void, setShadowSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setShadowSupported__bool, - "", + I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, + __C5_Image_P1__getImage__unsigned_int, + "Gets the const texture image for specified face. ", ""); - I_Method0(bool, isShadowSupported, - Properties::NON_VIRTUAL, - __bool__isShadowSupported, - "", + I_Method0(unsigned int, getNumImages, + Properties::PURE_VIRTUAL, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to this Texture. ", ""); - I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, Properties::NON_VIRTUAL, - __void__setShadowAmbientSupported__bool, - "", + __void__setReadPBuffer__GraphicsContext_P1, + "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", ""); - I_Method0(bool, isShadowAmbientSupported, + I_Method0(osg::GraphicsContext *, getReadPBuffer, Properties::NON_VIRTUAL, - __bool__isShadowAmbientSupported, - "", + __GraphicsContext_P1__getReadPBuffer, + "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", ""); - I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + I_Method0(const osg::GraphicsContext *, getReadPBuffer, Properties::NON_VIRTUAL, - __void__setMaxTextureSize__GLint, - "", + __C5_GraphicsContext_P1__getReadPBuffer, + "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", ""); - I_Method0(GLint, maxTextureSize, + I_Method1(void, apply, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__apply__State_R1, + "Texture is a pure virtual base class, apply must be overriden. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "Calls apply(state) to compile the texture. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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, Properties::NON_VIRTUAL, - __GLint__maxTextureSize, - "", - ""); - I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + __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, Properties::NON_VIRTUAL, - __void__setNumTextureUnits__GLint, - "", - ""); - I_Method0(GLint, numTextureUnits, + __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, Properties::NON_VIRTUAL, - __GLint__numTextureUnits, - "", + __void__takeTextureObjects__TextureObjectListMap_R1, + "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", ""); - I_Method0(bool, isCompressedTexImage2DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexImage2DSupported, - "", - ""); - I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setGetCompressedTexImageProc__void_P1, - "", - ""); - I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, - "", - ""); - I_Method0(bool, isClientStorageSupported, - Properties::NON_VIRTUAL, - __bool__isClientStorageSupported, - "", - ""); - I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, - Properties::NON_VIRTUAL, - __bool__isNonPowerOfTwoTextureSupported__GLenum, - "", - ""); - I_SimpleProperty(void *, CompressedTexImage2DProc, + 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_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__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); + __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(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::TextureObject) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + 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, + Properties::NON_VIRTUAL, + __bool__match__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(void, bind, + Properties::NON_VIRTUAL, + __void__bind, + "", + ""); + I_MethodWithDefaults1(void, setAllocated, IN, bool, allocated, true, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAllocated__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(bool, isAllocated, + Properties::NON_VIRTUAL, + __bool__isAllocated, + "", + ""); + I_Method0(bool, isReusable, + Properties::NON_VIRTUAL, + __bool__isReusable, + "", + ""); I_Constructor2(IN, GLuint, id, IN, GLenum, target, ____TextureObject__GLuint__GLenum, "", @@ -822,83 +1880,97 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) I_PublicMemberProperty(double, _timeStamp); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::buffered_object< osg::Texture::TextureObjectList >) - I_Constructor0(____buffered_object, +BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor2(IN, GLuint, id, IN, GLenum, target, + ____TextureObject__GLuint__GLenum, "", ""); - I_Constructor1(IN, unsigned int, size, - Properties::NON_EXPLICIT, - ____buffered_object__unsigned_int, + 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_Method1(void, setAllElementsTo, IN, const osg::Texture::TextureObjectList &, t, + 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, Properties::NON_VIRTUAL, - __void__setAllElementsTo__C5_T_R1, + __bool__match__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, "", ""); - I_Method0(void, clear, + I_Method0(void, bind, Properties::NON_VIRTUAL, - __void__clear, + __void__bind, "", ""); - I_Method0(bool, empty, + I_MethodWithDefaults1(void, setAllocated, IN, bool, allocated, true, + Properties::NON_VIRTUAL, + __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, Properties::NON_VIRTUAL, - __bool__empty, + __void__setAllocated__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, "", ""); - I_Method0(unsigned int, size, + I_Method0(bool, isAllocated, Properties::NON_VIRTUAL, - __unsigned_int__size, + __bool__isAllocated, "", ""); - I_Method1(void, resize, IN, unsigned int, newSize, + I_Method0(bool, isReusable, Properties::NON_VIRTUAL, - __void__resize__unsigned_int, + __bool__isReusable, "", ""); - I_SimpleProperty(const osg::Texture::TextureObjectList &, AllElementsTo, + 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, + Properties::NON_VIRTUAL, + __bool__match__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(void, bind, + Properties::NON_VIRTUAL, + __void__bind, + "", + ""); + I_MethodWithDefaults1(void, setAllocated, IN, bool, allocated, true, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAllocated__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(bool, isAllocated, + Properties::NON_VIRTUAL, + __bool__isAllocated, + "", + ""); + I_Method0(bool, isReusable, + Properties::NON_VIRTUAL, + __bool__isReusable, + "", + ""); + I_SimpleProperty(bool, Allocated, 0, - __void__setAllElementsTo__C5_T_R1); + __void__setAllocated__bool); + I_PublicMemberProperty(GLuint, _id); + I_PublicMemberProperty(GLenum, _target); + I_PublicMemberProperty(GLint, _numMipmapLevels); + I_PublicMemberProperty(GLenum, _internalFormat); + I_PublicMemberProperty(GLsizei, _width); + I_PublicMemberProperty(GLsizei, _height); + I_PublicMemberProperty(GLsizei, _depth); + I_PublicMemberProperty(GLint, _border); + I_PublicMemberProperty(bool, _allocated); + I_PublicMemberProperty(double, _timeStamp); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Texture::TextureObject >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osg::Texture::TextureObject *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Texture::TextureObject > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Texture::TextureObject *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osg::Texture::TextureObject *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Texture::TextureObject > &, rp, - Properties::NON_VIRTUAL, - __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 8f7bd9923..ee7395f9f 100644 --- a/src/osgWrappers/osg/Texture1D.cpp +++ b/src/osgWrappers/osg/Texture1D.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Texture1D) + I_BaseType(osg::Texture); I_BaseType(osg::Texture); I_Constructor0(____Texture1D, "", @@ -37,32 +38,179 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture1D) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to the Texture. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "Sets the texture width. ", + "If width is zero, calculate the value from the source image width. "); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "Gets the texture width. ", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture1D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, Properties::VIRTUAL, @@ -195,12 +343,336 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture1D) I_SimpleProperty(int, TextureWidth, __int__getTextureWidth, __void__setTextureWidth__int); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture1D) + I_BaseType(osg::Texture); + I_BaseType(osg::Texture); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to the Texture. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "Sets the texture width. ", + "If width is zero, calculate the value from the source image width. "); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "Gets the texture width. ", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture1D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __unsigned_int__getNumImages, + "Gets the number of images that can be assigned to the Texture. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "Sets the texture width. ", + "If width is zero, calculate the value from the source image width. "); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "Gets the texture width. ", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture1D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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(Type, Type, __Type__getType, 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D::SubloadCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____SubloadCallback, "", @@ -215,5 +687,43 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D::SubloadCallback) __void__subload__C5_Texture1D_R1__State_R1, "", ""); + I_Method2(void, load, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture1D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture1D_R1__State_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D::SubloadCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture1D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture1D_R1__State_R1, + "", + ""); + I_Method2(void, load, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture1D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture1D_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture2D.cpp b/src/osgWrappers/osg/Texture2D.cpp index 2483ef61c..3862e64ef 100644 --- a/src/osgWrappers/osg/Texture2D.cpp +++ b/src/osgWrappers/osg/Texture2D.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Texture2D) + I_BaseType(osg::Texture); I_BaseType(osg::Texture); I_Constructor0(____Texture2D, "", @@ -42,32 +43,194 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture2D) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + I_Constructor0(____Texture2D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, Properties::VIRTUAL, @@ -210,12 +373,366 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture2D) I_SimpleProperty(int, TextureWidth, __int__getTextureWidth, __void__setTextureWidth__int); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture2D) + I_BaseType(osg::Texture); + I_BaseType(osg::Texture); + I_Constructor0(____Texture2D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + I_Constructor0(____Texture2D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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(Type, Type, __Type__getType, 0); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____SubloadCallback, "", @@ -230,5 +747,43 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) __void__subload__C5_Texture2D_R1__State_R1, "", ""); + I_Method2(void, load, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture2D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture2D_R1__State_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture2D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture2D_R1__State_R1, + "", + ""); + I_Method2(void, load, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture2D_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture2D_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture3D.cpp b/src/osgWrappers/osg/Texture3D.cpp index bc8a7bf24..1895d1d55 100644 --- a/src/osgWrappers/osg/Texture3D.cpp +++ b/src/osgWrappers/osg/Texture3D.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Texture3D) + I_BaseType(osg::Texture); I_BaseType(osg::Texture); I_Constructor0(____Texture3D, "", @@ -37,32 +39,194 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getTextureSize__int_R1__int_R1__int_R1, + "Gets the texture subload width. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method1(void, setTextureDepth, IN, int, depth, + Properties::NON_VIRTUAL, + __void__setTextureDepth__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture3D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, Properties::VIRTUAL, @@ -197,6 +361,14 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) __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_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); @@ -218,13 +390,503 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) I_SimpleProperty(int, TextureWidth, __int__getTextureWidth, __void__setTextureWidth__int); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture3D) + I_BaseType(osg::Texture); + I_BaseType(osg::Texture); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getTextureSize__int_R1__int_R1__int_R1, + "Gets the texture subload width. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method1(void, setTextureDepth, IN, int, depth, + Properties::NON_VIRTUAL, + __void__setTextureDepth__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture3D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture object. ", + "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Sets the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Gets the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Gets the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned__Image_P1, + "Sets the texture image, ignoring face. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned, + "Gets the texture image, ignoring face. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Gets the const texture image, ignoring face. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__getTextureSize__int_R1__int_R1__int_R1, + "Gets the texture subload width. ", + ""); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method1(void, setTextureDepth, IN, int, depth, + Properties::NON_VIRTUAL, + __void__setTextureDepth__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture3D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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_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(Type, Type, __Type__getType, 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setTexture3DSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DSupported__bool, + "", + ""); + I_Method0(bool, isTexture3DSupported, + Properties::NON_VIRTUAL, + __bool__isTexture3DSupported, + "", + ""); + I_Method1(void, setTexture3DFast, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DFast__bool, + "", + ""); + I_Method0(bool, isTexture3DFast, + Properties::NON_VIRTUAL, + __bool__isTexture3DFast, + "", + ""); + I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTexture3DSize__GLint, + "", + ""); + I_Method0(GLint, maxTexture3DSize, + Properties::NON_VIRTUAL, + __GLint__maxTexture3DSize, + "", + ""); + I_Method1(void, setTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, + "", + ""); + I_Method0(bool, isCompressedTexImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method0(bool, isCompressedTexSubImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexSubImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); I_Constructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____Extensions__unsigned_int, @@ -374,20 +1036,275 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) __void__setTexture3DSupported__bool); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::SubloadCallback) +BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) I_BaseType(osg::Referenced); - I_Constructor0(____SubloadCallback, + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, "", ""); - I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__load__C5_Texture3D_R1__State_R1, + I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); - I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__subload__C5_Texture3D_R1__State_R1, + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, "", ""); + I_Method1(void, setTexture3DSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DSupported__bool, + "", + ""); + I_Method0(bool, isTexture3DSupported, + Properties::NON_VIRTUAL, + __bool__isTexture3DSupported, + "", + ""); + I_Method1(void, setTexture3DFast, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DFast__bool, + "", + ""); + I_Method0(bool, isTexture3DFast, + Properties::NON_VIRTUAL, + __bool__isTexture3DFast, + "", + ""); + I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTexture3DSize__GLint, + "", + ""); + I_Method0(GLint, maxTexture3DSize, + Properties::NON_VIRTUAL, + __GLint__maxTexture3DSize, + "", + ""); + I_Method1(void, setTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, + "", + ""); + I_Method0(bool, isCompressedTexImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method0(bool, isCompressedTexSubImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexSubImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setTexture3DSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DSupported__bool, + "", + ""); + I_Method0(bool, isTexture3DSupported, + Properties::NON_VIRTUAL, + __bool__isTexture3DSupported, + "", + ""); + I_Method1(void, setTexture3DFast, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DFast__bool, + "", + ""); + I_Method0(bool, isTexture3DFast, + Properties::NON_VIRTUAL, + __bool__isTexture3DFast, + "", + ""); + I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTexture3DSize__GLint, + "", + ""); + I_Method0(GLint, maxTexture3DSize, + Properties::NON_VIRTUAL, + __GLint__maxTexture3DSize, + "", + ""); + I_Method1(void, setTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, + "", + ""); + I_Method0(bool, isCompressedTexImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method0(bool, isCompressedTexSubImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexSubImage3DSupported, + "", + ""); + I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 diff --git a/src/osgWrappers/osg/TextureCubeMap.cpp b/src/osgWrappers/osg/TextureCubeMap.cpp index b717ddd15..f9e61d2fa 100644 --- a/src/osgWrappers/osg/TextureCubeMap.cpp +++ b/src/osgWrappers/osg/TextureCubeMap.cpp @@ -10,11 +10,8 @@ #include #include -#include -#include -#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,230 +22,8 @@ #undef OUT #endif -BEGIN_ENUM_REFLECTOR(osg::TextureCubeMap::Face) - I_EnumLabel(osg::TextureCubeMap::POSITIVE_X); - I_EnumLabel(osg::TextureCubeMap::NEGATIVE_X); - I_EnumLabel(osg::TextureCubeMap::POSITIVE_Y); - I_EnumLabel(osg::TextureCubeMap::NEGATIVE_Y); - I_EnumLabel(osg::TextureCubeMap::POSITIVE_Z); - I_EnumLabel(osg::TextureCubeMap::NEGATIVE_Z); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) - I_BaseType(osg::Texture); - 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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "Return the name of the attribute's class type. ", - ""); - I_Method0(osg::StateAttribute::Type, getType, - Properties::VIRTUAL, - __Type__getType, - "Return the Type identifier of the attribute's class type. ", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, - Properties::VIRTUAL, - __void__setImage__unsigned_int__Image_P1, - "Set the texture image for specified face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned int, face, - Properties::VIRTUAL, - __Image_P1__getImage__unsigned_int, - "Get the texture image for specified face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face, - Properties::VIRTUAL, - __C5_Image_P1__getImage__unsigned_int, - "Get the const texture image for specified face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getModifiedCount__unsigned_int__unsigned_int, - "", - ""); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setTextureWidth__int, - "", - ""); - I_Method1(void, setTextureHeight, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureHeight__int, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method1(void, setSubloadCallback, IN, osg::TextureCubeMap::SubloadCallback *, cb, - Properties::NON_VIRTUAL, - __void__setSubloadCallback__SubloadCallback_P1, - "", - ""); - I_Method0(osg::TextureCubeMap::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method0(const osg::TextureCubeMap::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __C5_SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, - "", - ""); - I_Constructor1(IN, const osg::TextureCubeMap::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::TextureCubeMap::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, - "", - ""); - I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtenions__unsigned_int, - "", - ""); - I_Method1(void, setCubeMapSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setCubeMapSupported__bool, - "", - ""); - I_Method0(bool, isCubeMapSupported, - Properties::NON_VIRTUAL, - __bool__isCubeMapSupported, - "", - ""); - I_SimpleProperty(bool, CubeMapSupported, - 0, - __void__setCubeMapSupported__bool); -END_REFLECTOR - BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::SubloadCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____SubloadCallback, "", @@ -263,5 +38,43 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::SubloadCallback) __void__subload__C5_TextureCubeMap_R1__State_R1, "", ""); + I_Method2(void, load, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_TextureCubeMap_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_TextureCubeMap_R1__State_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::SubloadCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_TextureCubeMap_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_TextureCubeMap_R1__State_R1, + "", + ""); + I_Method2(void, load, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_TextureCubeMap_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_TextureCubeMap_R1__State_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/TextureRectangle.cpp b/src/osgWrappers/osg/TextureRectangle.cpp index 43ac6d0be..e0a826d63 100644 --- a/src/osgWrappers/osg/TextureRectangle.cpp +++ b/src/osgWrappers/osg/TextureRectangle.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) + I_BaseType(osg::Texture); I_BaseType(osg::Texture); I_Constructor0(____TextureRectangle, "", @@ -42,32 +44,184 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Set the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Get the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Get the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Get the const texture image, ignoring face value as there is only one image. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "On first apply (unless already compiled), create and bind the texture, subsequent apply will simply bind to texture. ", + ""); + I_Constructor0(____TextureRectangle, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, Properties::VIRTUAL, @@ -197,25 +351,338 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) I_SimpleProperty(int, TextureWidth, __int__getTextureWidth, __void__setTextureWidth__int); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle::SubloadCallback) - I_BaseType(osg::Referenced); - I_Constructor0(____SubloadCallback, +BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) + I_BaseType(osg::Texture); + I_BaseType(osg::Texture); + I_Constructor0(____TextureRectangle, "", ""); - I_Method2(void, load, IN, const osg::TextureRectangle &, x, IN, osg::State &, x, - Properties::PURE_VIRTUAL, - __void__load__C5_TextureRectangle_R1__State_R1, + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, "", ""); - I_Method2(void, subload, IN, const osg::TextureRectangle &, x, IN, osg::State &, x, - Properties::PURE_VIRTUAL, - __void__subload__C5_TextureRectangle_R1__State_R1, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, "", ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Set the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Get the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Get the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Get the const texture image, ignoring face value as there is only one image. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__State_R1, + "On first apply (unless already compiled), create and bind the texture, subsequent apply will simply bind to texture. ", + ""); + I_Constructor0(____TextureRectangle, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__Image_P1, + "Set the texture image. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __Image_P1__getImage, + "Get the texture image. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage, + "Get the const texture image. ", + ""); + I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int, + "", + ""); + I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned, + "Get the const texture image, ignoring face value as there is only one image. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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(Type, Type, + __Type__getType, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Transform.cpp b/src/osgWrappers/osg/Transform.cpp index b1b1129fc..0bdd99325 100644 --- a/src/osgWrappers/osg/Transform.cpp +++ b/src/osgWrappers/osg/Transform.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -34,6 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::Transform::ReferenceFrame) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Transform) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____Transform, "", @@ -45,43 +47,333 @@ BEGIN_OBJECT_REFLECTOR(osg::Transform) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method0(osg::Transform *, asTransform, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(const osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, + __C5_MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::Transform::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __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. ABSOLUTE_RF_INHERIT_VIEWPOINT is the same as ABSOLUTE_RF except it adds the ability to use the parents view points position in world coordinates as its local viewpoint in the new coordinates frame. This is useful for Render to texture Cameras that wish to use the main views LOD range computation (which uses the viewpoint rather than the eye point) rather than use the local eye point defined by the this Transforms' abosolute view matrix."); + I_Method0(osg::Transform::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::Transform *, asTransform, + Properties::VIRTUAL, + __Transform_P1__asTransform, + "", + ""); + I_Method0(const osg::Transform *, asTransform, + Properties::VIRTUAL, + __C5_Transform_P1__asTransform, + "", + ""); + I_Method0(osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, + __MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(const osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, + __C5_MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::Transform::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __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. ABSOLUTE_RF_INHERIT_VIEWPOINT is the same as ABSOLUTE_RF except it adds the ability to use the parents view points position in world coordinates as its local viewpoint in the new coordinates frame. This is useful for Render to texture Cameras that wish to use the main views LOD range computation (which uses the viewpoint rather than the eye point) rather than use the local eye point defined by the this Transforms' abosolute view matrix."); + I_Method0(osg::Transform::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osg::Transform::ReferenceFrame) + I_EnumLabel(osg::Transform::RELATIVE_RF); + I_EnumLabel(osg::Transform::ABSOLUTE_RF); + I_EnumLabel(osg::Transform::ABSOLUTE_RF_INHERIT_VIEWPOINT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Transform) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::Transform *, asTransform, + Properties::VIRTUAL, + __Transform_P1__asTransform, + "", + ""); + I_Method0(const osg::Transform *, asTransform, + Properties::VIRTUAL, + __C5_Transform_P1__asTransform, + "", + ""); + I_Method0(osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, + __MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(const osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, + __C5_MatrixTransform_P1__asMatrixTransform, + "", + ""); + I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, + __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::Transform::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __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. ABSOLUTE_RF_INHERIT_VIEWPOINT is the same as ABSOLUTE_RF except it adds the ability to use the parents view points position in world coordinates as its local viewpoint in the new coordinates frame. This is useful for Render to texture Cameras that wish to use the main views LOD range computation (which uses the viewpoint rather than the eye point) rather than use the local eye point defined by the this Transforms' abosolute view matrix."); + I_Method0(osg::Transform::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::Transform *, asTransform, + Properties::VIRTUAL, + __Transform_P1__asTransform, + "", + ""); + I_Method0(const osg::Transform *, asTransform, + Properties::VIRTUAL, + __C5_Transform_P1__asTransform, + "", + ""); I_Method0(osg::MatrixTransform *, asMatrixTransform, Properties::VIRTUAL, __MatrixTransform_P1__asMatrixTransform, diff --git a/src/osgWrappers/osg/Uniform.cpp b/src/osgWrappers/osg/Uniform.cpp index 7424c7055..5564fbc74 100644 --- a/src/osgWrappers/osg/Uniform.cpp +++ b/src/osgWrappers/osg/Uniform.cpp @@ -10,18 +10,11 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -74,6 +67,135 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix2) __void__makeIdentity, "", ""); + I_Constructor0(____Matrix2, + "", + ""); + I_Constructor1(IN, const osg::Matrix2 &, mat, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_Matrix2_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, + __void__set__float_C5_P1C5, + "", + ""); + I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + Properties::NON_VIRTUAL, + __void__set__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + Properties::NON_VIRTUAL, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, + __void__makeIdentity, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Matrix2) + I_Constructor0(____Matrix2, + "", + ""); + I_Constructor1(IN, const osg::Matrix2 &, mat, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_Matrix2_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, + __void__set__float_C5_P1C5, + "", + ""); + I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + Properties::NON_VIRTUAL, + __void__set__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + Properties::NON_VIRTUAL, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, + __void__makeIdentity, + "", + ""); + I_Constructor0(____Matrix2, + "", + ""); + I_Constructor1(IN, const osg::Matrix2 &, mat, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_Matrix2_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, + __void__set__float_C5_P1C5, + "", + ""); + I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + Properties::NON_VIRTUAL, + __void__set__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + Properties::NON_VIRTUAL, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, + __void__makeIdentity, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::Matrix3) @@ -119,677 +241,139 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix3) __void__makeIdentity, "", ""); + I_Constructor0(____Matrix3, + "", + ""); + I_Constructor1(IN, const osg::Matrix3 &, mat, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_Matrix3_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__float__float__float__float__float__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + Properties::NON_VIRTUAL, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, + __void__makeIdentity, + "", + ""); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList); - -BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) - I_EnumLabel(osg::Uniform::FLOAT); - I_EnumLabel(osg::Uniform::FLOAT_VEC2); - I_EnumLabel(osg::Uniform::FLOAT_VEC3); - I_EnumLabel(osg::Uniform::FLOAT_VEC4); - I_EnumLabel(osg::Uniform::INT); - I_EnumLabel(osg::Uniform::INT_VEC2); - I_EnumLabel(osg::Uniform::INT_VEC3); - I_EnumLabel(osg::Uniform::INT_VEC4); - I_EnumLabel(osg::Uniform::BOOL); - I_EnumLabel(osg::Uniform::BOOL_VEC2); - I_EnumLabel(osg::Uniform::BOOL_VEC3); - I_EnumLabel(osg::Uniform::BOOL_VEC4); - I_EnumLabel(osg::Uniform::FLOAT_MAT2); - I_EnumLabel(osg::Uniform::FLOAT_MAT3); - I_EnumLabel(osg::Uniform::FLOAT_MAT4); - I_EnumLabel(osg::Uniform::SAMPLER_1D); - I_EnumLabel(osg::Uniform::SAMPLER_2D); - I_EnumLabel(osg::Uniform::SAMPLER_3D); - I_EnumLabel(osg::Uniform::SAMPLER_CUBE); - I_EnumLabel(osg::Uniform::SAMPLER_1D_SHADOW); - I_EnumLabel(osg::Uniform::SAMPLER_2D_SHADOW); - I_EnumLabel(osg::Uniform::UNDEFINED); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::Uniform) - I_BaseType(osg::Object); - I_Constructor0(____Uniform, +BEGIN_VALUE_REFLECTOR(osg::Matrix3) + I_Constructor0(____Matrix3, "", ""); - 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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__setType__Type, - "Set the type of glUniform, ensuring it is only set once. ", - ""); - I_Method0(const osg::Uniform::Type, getType, - Properties::NON_VIRTUAL, - __C5_Type__getType, - "Get the type of glUniform as enum. ", - ""); - I_Method1(void, setName, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setNumElements__unsigned_int, - "Set the length of a uniform, ensuring it is only set once (1==scalar). ", - ""); - I_Method0(unsigned int, getNumElements, - Properties::NON_VIRTUAL, - __unsigned_int__getNumElements, - "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", - ""); - I_Method0(unsigned int, getInternalArrayNumElements, - Properties::NON_VIRTUAL, - __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_Constructor1(IN, const osg::Matrix3 &, mat, + Properties::NON_EXPLICIT, + ____Matrix3__C5_Matrix3_R1, "", ""); - I_Constructor2(IN, const char *, name, IN, bool, b, - ____Uniform__C5_char_P1__bool, + 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_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, - ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + I_Method1(void, set, IN, const osg::Matrix3 &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Matrix3_R1, + "", + ""); + I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__float__float__float__float__float__float__float__float__float, + "", + ""); + I_Method0(float *, ptr, + Properties::NON_VIRTUAL, + __float_P1__ptr, + "", + ""); + I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, + __C5_float_P1__ptr, + "", + ""); + I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, + __void__makeIdentity, + "", + ""); + I_Constructor0(____Matrix3, "", ""); - I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, - ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + I_Constructor1(IN, const osg::Matrix3 &, mat, + Properties::NON_EXPLICIT, + ____Matrix3__C5_Matrix3_R1, "", ""); - I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, - ____Uniform__C5_char_P1__C5_osg_Vec4_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_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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __int__compareData__C5_Uniform_R1, - "", - ""); - I_Method1(void, copyData, IN, const osg::Uniform &, rhs, - Properties::NON_VIRTUAL, - __void__copyData__C5_Uniform_R1, - "", - ""); - I_Method0(const osg::Uniform::ParentList &, getParents, - Properties::NON_VIRTUAL, - __C5_ParentList_R1__getParents, - "Get the parent list of this Uniform. ", - ""); - I_Method0(osg::Uniform::ParentList, getParents, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __StateSet_P1__getParent__unsigned_int, - "", - ""); - I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__set__float, - "convenient scalar (non-array) value assignment ", - ""); - I_Method1(bool, set, IN, int, i, - Properties::NON_VIRTUAL, - __bool__set__int, - "", - ""); - I_Method1(bool, set, IN, bool, b, - Properties::NON_VIRTUAL, - __bool__set__bool, - "", - ""); - I_Method1(bool, set, IN, const osg::Vec2 &, v2, - Properties::NON_VIRTUAL, - __bool__set__C5_osg_Vec2_R1, - "", - ""); - I_Method1(bool, set, IN, const osg::Vec3 &, v3, - Properties::NON_VIRTUAL, - __bool__set__C5_osg_Vec3_R1, - "", - ""); - I_Method1(bool, set, IN, const osg::Vec4 &, v4, + I_Method1(void, set, IN, const osg::Matrix3 &, rhs, Properties::NON_VIRTUAL, - __bool__set__C5_osg_Vec4_R1, + __void__set__C5_Matrix3_R1, "", ""); - I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + I_Method1(void, set, IN, float const *const, ptr, Properties::NON_VIRTUAL, - __bool__set__C5_osg_Matrix2_R1, + __void__set__float_C5_P1C5, "", ""); - I_Method1(bool, set, IN, const osg::Matrix3 &, m3, - Properties::NON_VIRTUAL, - __bool__set__C5_osg_Matrix3_R1, - "", - ""); - I_Method1(bool, set, IN, const osg::Matrixf &, m4, - Properties::NON_VIRTUAL, - __bool__set__C5_osg_Matrixf_R1, - "", - ""); - I_Method1(bool, set, IN, const osg::Matrixd &, m4, - Properties::NON_VIRTUAL, - __bool__set__C5_osg_Matrixd_R1, - "", - ""); - I_Method2(bool, set, IN, int, i0, IN, int, i1, - Properties::NON_VIRTUAL, - __bool__set__int__int, - "", - ""); - I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, - Properties::NON_VIRTUAL, - __bool__set__int__int__int, - "", - ""); - I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, - Properties::NON_VIRTUAL, - __bool__set__int__int__int__int, - "", - ""); - I_Method2(bool, set, IN, bool, b0, IN, bool, b1, - Properties::NON_VIRTUAL, - __bool__set__bool__bool, - "", - ""); - I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, - Properties::NON_VIRTUAL, - __bool__set__bool__bool__bool, - "", - ""); - I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, - Properties::NON_VIRTUAL, - __bool__set__bool__bool__bool__bool, - "", - ""); - I_Method1(bool, get, IN, float &, f, - Properties::NON_VIRTUAL, - __bool__get__float_R1, - "convenient scalar (non-array) value query ", - ""); - I_Method1(bool, get, IN, int &, i, - Properties::NON_VIRTUAL, - __bool__get__int_R1, - "", - ""); - I_Method1(bool, get, IN, bool &, b, - Properties::NON_VIRTUAL, - __bool__get__bool_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Vec2 &, v2, - Properties::NON_VIRTUAL, - __bool__get__osg_Vec2_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Vec3 &, v3, - Properties::NON_VIRTUAL, - __bool__get__osg_Vec3_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Vec4 &, v4, - Properties::NON_VIRTUAL, - __bool__get__osg_Vec4_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Matrix2 &, m2, - Properties::NON_VIRTUAL, - __bool__get__osg_Matrix2_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Matrix3 &, m3, - Properties::NON_VIRTUAL, - __bool__get__osg_Matrix3_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Matrixf &, m4, - Properties::NON_VIRTUAL, - __bool__get__osg_Matrixf_R1, - "", - ""); - I_Method1(bool, get, IN, osg::Matrixd &, m4, - Properties::NON_VIRTUAL, - __bool__get__osg_Matrixd_R1, - "", - ""); - I_Method2(bool, get, IN, int &, i0, IN, int &, i1, - Properties::NON_VIRTUAL, - __bool__get__int_R1__int_R1, - "", - ""); - I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, - Properties::NON_VIRTUAL, - __bool__get__int_R1__int_R1__int_R1, - "", - ""); - I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, - Properties::NON_VIRTUAL, - __bool__get__int_R1__int_R1__int_R1__int_R1, - "", - ""); - I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, - Properties::NON_VIRTUAL, - __bool__get__bool_R1__bool_R1, - "", - ""); - I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, - Properties::NON_VIRTUAL, - __bool__get__bool_R1__bool_R1__bool_R1, - "", - ""); - I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, - Properties::NON_VIRTUAL, - __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__float, - "value assignment for array uniforms ", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__int, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__bool, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Vec2_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Vec3_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Vec4_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, - "", - ""); - I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, - "", - ""); - I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__int__int, - "", - ""); - I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__int__int__int__int, - "", - ""); - I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__bool__bool, - "", - ""); - I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__setElement__unsigned_int__bool__bool__bool__bool, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__float_R1, - "value query for array uniforms ", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__int_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__bool_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Vec2_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Matrix2_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Matrix3_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Matrixf_R1, - "", - ""); - I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__osg_Matrixd_R1, - "", - ""); - I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, - "", - ""); - I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __Callback_P1__getUpdateCallback, - "Get the non const UpdateCallback. ", - ""); - I_Method0(const osg::Uniform::Callback *, getUpdateCallback, - Properties::NON_VIRTUAL, - __C5_Callback_P1__getUpdateCallback, - "Get the const UpdateCallback. ", - ""); - I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __Callback_P1__getEventCallback, - "Get the non const EventCallback. ", - ""); - I_Method0(const osg::Uniform::Callback *, getEventCallback, - Properties::NON_VIRTUAL, - __C5_Callback_P1__getEventCallback, - "Get the const EventCallback. ", - ""); - I_Method0(void, dirty, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __bool__setArray__FloatArray_P1, - "Set the internal data array for a osg::Uniform. ", - ""); - I_Method1(bool, setArray, IN, osg::IntArray *, array, - Properties::NON_VIRTUAL, - __bool__setArray__IntArray_P1, - "", - ""); - I_Method0(osg::FloatArray *, getFloatArray, - Properties::NON_VIRTUAL, - __FloatArray_P1__getFloatArray, - "Get the internal data array for a float osg::Uniform. ", - ""); - I_Method0(const osg::FloatArray *, getFloatArray, - Properties::NON_VIRTUAL, - __C5_FloatArray_P1__getFloatArray, - "", - ""); - I_Method0(osg::IntArray *, getIntArray, - Properties::NON_VIRTUAL, - __IntArray_P1__getIntArray, - "Get the internal data array for an int osg::Uniform. ", - ""); - I_Method0(const osg::IntArray *, getIntArray, + 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, Properties::NON_VIRTUAL, - __C5_IntArray_P1__getIntArray, + __void__set__float__float__float__float__float__float__float__float__float, "", ""); - I_Method1(void, setModifiedCount, IN, unsigned int, mc, + I_Method0(float *, ptr, Properties::NON_VIRTUAL, - __void__setModifiedCount__unsigned_int, + __float_P1__ptr, "", ""); - I_Method0(unsigned int, getModifiedCount, + I_Method0(const float *, ptr, Properties::NON_VIRTUAL, - __unsigned_int__getModifiedCount, + __C5_float_P1__ptr, "", ""); - I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + I_Method0(void, makeIdentity, Properties::NON_VIRTUAL, - __void__apply__C5_GL2Extensions_P1__GLint, + __void__makeIdentity, "", ""); - 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_VirtualBaseType(osg::Object); I_Constructor0(____Callback, "", @@ -801,13 +385,13 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -816,12 +400,113 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) + I_VirtualBaseType(osg::Object); + I_VirtualBaseType(osg::Object); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec2d.cpp b/src/osgWrappers/osg/Vec2d.cpp index b29153730..02eaffa90 100644 --- a/src/osgWrappers/osg/Vec2d.cpp +++ b/src/osgWrappers/osg/Vec2d.cpp @@ -10,8 +10,9 @@ #include #include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -100,5 +101,228 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2d) __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); + 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, + Properties::NON_EXPLICIT, + ____Vec2d__C5_Vec2f_R1, + "", + ""); + I_Method0(osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); +END_REFLECTOR + +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(____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, + Properties::NON_EXPLICIT, + ____Vec2d__C5_Vec2f_R1, + "", + ""); + I_Method0(osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); + 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, + Properties::NON_EXPLICIT, + ____Vec2d__C5_Vec2f_R1, + "", + ""); + I_Method0(osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2d::value_type, normalize, + Properties::NON_VIRTUAL, + __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/Vec3d.cpp b/src/osgWrappers/osg/Vec3d.cpp index 3c1538058..83c2ecd54 100644 --- a/src/osgWrappers/osg/Vec3d.cpp +++ b/src/osgWrappers/osg/Vec3d.cpp @@ -10,9 +10,10 @@ #include #include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -120,5 +121,285 @@ BEGIN_VALUE_REFLECTOR(osg::Vec3d) __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); + I_Constructor0(____Vec3d, + "", + ""); + I_Constructor1(IN, const osg::Vec3f &, vec, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3d::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3d &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec3d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3d::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3d::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec3d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec3d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec3d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); +END_REFLECTOR + +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(____Vec3d, + "", + ""); + I_Constructor1(IN, const osg::Vec3f &, vec, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3d::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3d &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec3d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3d::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3d::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec3d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec3d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec3d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); + I_Constructor0(____Vec3d, + "", + ""); + I_Constructor1(IN, const osg::Vec3f &, vec, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec3d::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec3d &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3d_R1, + "", + ""); + I_Method0(osg::Vec3d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec3d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec3d::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec3d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec3d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec3d::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec3d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec3d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec3d::value_type, normalize, + Properties::NON_VIRTUAL, + __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/Vec4b.cpp b/src/osgWrappers/osg/Vec4b.cpp index 1d92302ec..ac65d249f 100644 --- a/src/osgWrappers/osg/Vec4b.cpp +++ b/src/osgWrappers/osg/Vec4b.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -129,5 +130,318 @@ BEGIN_VALUE_REFLECTOR(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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4b::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4b::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4b::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4b::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4b::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4b::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4b::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4b::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4b::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4b::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4b::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4b::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4b::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4b::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4b::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4b::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4b::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); +END_REFLECTOR + +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(____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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4b::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4b::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4b::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4b::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4b::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4b::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4b::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4b::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4b::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4b::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4b::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4b::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4b::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4b::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4b::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4b::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4b::value_type, a, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4b::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4b::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4b::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4b::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4b::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4b::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4b::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4b::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4b::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4b::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4b::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4b::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4b::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4b::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4b::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4b::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4b::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec4s.cpp b/src/osgWrappers/osg/Vec4s.cpp index 2246d21ed..7da3fee0f 100644 --- a/src/osgWrappers/osg/Vec4s.cpp +++ b/src/osgWrappers/osg/Vec4s.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -125,5 +126,316 @@ BEGIN_VALUE_REFLECTOR(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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4s::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4s::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4s::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4s::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4s::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4s::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4s::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4s::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4s::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4s::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4s::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4s::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4s::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4s::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4s::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4s::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4s::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(short, osg::Vec4s::value_type); + +BEGIN_VALUE_REFLECTOR(osg::Vec4s) + 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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4s::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4s::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4s::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4s::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4s::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4s::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4s::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4s::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4s::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4s::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4s::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4s::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4s::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4s::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4s::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4s::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4s::value_type, a, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4s::value_type *, ptr, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4s::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4s::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4s::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4s::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4s::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4s::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4s::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4s::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4s::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4s::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4s::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4s::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4s::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4s::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4s::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4s::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/VertexProgram.cpp b/src/osgWrappers/osg/VertexProgram.cpp index 8ea8272cf..dba883ca7 100644 --- a/src/osgWrappers/osg/VertexProgram.cpp +++ b/src/osgWrappers/osg/VertexProgram.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -31,6 +32,7 @@ TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalPa TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList); BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____VertexProgram, "", @@ -42,32 +44,32 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -147,12 +149,144 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__compileGLObjects__State_R1, - "Default to nothing to compile - all state is applied immediately. ", + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertexProgram__C5_char_P1, + "Set the vertex program using a C style string. ", + ""); + I_Method1(void, setVertexProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, + __void__setVertexProgram__C5_std_string_R1, + "Set the vertex program using C++ style string. ", + ""); + I_Method0(const std::string &, getVertexProgram, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getVertexProgram, + "Get the vertex program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyVertexProgramObject, + Properties::NON_VIRTUAL, + __void__dirtyVertexProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, Properties::VIRTUAL, @@ -180,13 +314,346 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) __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_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, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); + I_SimpleProperty(const std::string &, VertexProgram, + __C5_std_string_R1__getVertexProgram, + __void__setVertexProgram__C5_std_string_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalParamList); + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList); + +BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertexProgram__C5_char_P1, + "Set the vertex program using a C style string. ", + ""); + I_Method1(void, setVertexProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, + __void__setVertexProgram__C5_std_string_R1, + "Set the vertex program using C++ style string. ", + ""); + I_Method0(const std::string &, getVertexProgram, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getVertexProgram, + "Get the vertex program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyVertexProgramObject, + Properties::NON_VIRTUAL, + __void__dirtyVertexProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertexProgram__C5_char_P1, + "Set the vertex program using a C style string. ", + ""); + I_Method1(void, setVertexProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, + __void__setVertexProgram__C5_std_string_R1, + "Set the vertex program using C++ style string. ", + ""); + I_Method0(const std::string &, getVertexProgram, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getVertexProgram, + "Get the vertex program. ", + ""); + I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, + __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, + "Set Program Parameters. ", + ""); + I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, + __void__setLocalParameters__C5_LocalParamList_R1, + "Set list of Program Parameters. ", + ""); + I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __LocalParamList_R1__getLocalParameters, + "Get list of Program Parameters. ", + ""); + I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, + __C5_LocalParamList_R1__getLocalParameters, + "Get const list of Program Parameters. ", + ""); + I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_GLenum__C5_Matrix_R1, + "Matrix. ", + ""); + I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, + __void__setMatrices__C5_MatrixList_R1, + "Set list of Matrices. ", + ""); + I_Method0(osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, + __C5_MatrixList_R1__getMatrices, + "Get list of Matrices. ", + ""); + I_Method0(void, dirtyVertexProgramObject, + Properties::NON_VIRTUAL, + __void__dirtyVertexProgramObject, + "Force a recompile on next apply() of associated OpenGL vertex program objects. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileGLObjects__State_R1, + "", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_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(Type, Type, __Type__getType, 0); I_SimpleProperty(const std::string &, VertexProgram, @@ -196,6 +663,180 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::VertexProgram::Extensions) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, + __bool__isVertexProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, + __bool__isVertexProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); + I_SimpleProperty(bool, VertexProgramSupported, + 0, + __void__setVertexProgramSupported__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::VertexProgram::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtenions__unsigned_int, + "", + ""); + I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setVertexProgramSupported__bool, + "", + ""); + I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, + __bool__isVertexProgramSupported, + "", + ""); + I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, + __void__glBindProgram__GLenum__GLuint, + "", + ""); + I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glGenPrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, + __void__glDeletePrograms__GLsizei__GLuint_P1, + "", + ""); + I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, + __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, + "", + ""); + I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, + __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, + "", + ""); I_Constructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____Extensions__unsigned_int, diff --git a/src/osgWrappers/osg/View.cpp b/src/osgWrappers/osg/View.cpp index 5f49a9840..96eccec4b 100644 --- a/src/osgWrappers/osg/View.cpp +++ b/src/osgWrappers/osg/View.cpp @@ -10,9 +10,9 @@ #include #include +#include +#include #include -#include -#include #include #include @@ -26,6 +26,259 @@ BEGIN_OBJECT_REFLECTOR(osg::View) I_VirtualBaseType(osg::Referenced); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____View, + "", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the const Stats object. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the master camera of the view. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the master camera of the view. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const master camera of the view. ", + ""); + I_Method1(bool, addSlave, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1, + "", + ""); + I_Method3(bool, addSlave, IN, osg::Camera *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(bool, removeSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__removeSlave__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumSlaves, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSlaves, + "", + ""); + I_Method1(osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __Slave_R1__getSlave__unsigned_int, + "", + ""); + I_Method1(const osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_Slave_R1__getSlave__unsigned_int, + "", + ""); + I_Method1(osg::View::Slave *, findSlaveForCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __Slave_P1__findSlaveForCamera__osg_Camera_P1, + "", + ""); + I_Method0(void, updateSlaves, + Properties::NON_VIRTUAL, + __void__updateSlaves, + "", + ""); + I_Method1(void, updateSlave, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__updateSlave__unsigned_int, + "", + ""); + I_Constructor0(____View, + "", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the const Stats object. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the master camera of the view. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the master camera of the view. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const master camera of the view. ", + ""); + I_Method1(bool, addSlave, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1, + "", + ""); + I_Method3(bool, addSlave, IN, osg::Camera *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(bool, removeSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__removeSlave__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumSlaves, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSlaves, + "", + ""); + I_Method1(osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __Slave_R1__getSlave__unsigned_int, + "", + ""); + I_Method1(const osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_Slave_R1__getSlave__unsigned_int, + "", + ""); + I_Method1(osg::View::Slave *, findSlaveForCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __Slave_P1__findSlaveForCamera__osg_Camera_P1, + "", + ""); + I_Method0(void, updateSlaves, + Properties::NON_VIRTUAL, + __void__updateSlaves, + "", + ""); + I_Method1(void, updateSlave, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__updateSlave__unsigned_int, + "", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_P1); + I_ArrayProperty(osg::View::Slave &, Slave, + __Slave_R1__getSlave__unsigned_int, + 0, + __unsigned_int__getNumSlaves, + 0, + 0, + __bool__removeSlave__unsigned_int); + I_SimpleProperty(osg::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::View) + I_VirtualBaseType(osg::Referenced); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____View, + "", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the const Stats object. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the master camera of the view. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the master camera of the view. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const master camera of the view. ", + ""); + I_Method1(bool, addSlave, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1, + "", + ""); + I_Method3(bool, addSlave, IN, osg::Camera *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method1(bool, removeSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__removeSlave__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumSlaves, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSlaves, + "", + ""); + I_Method1(osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __Slave_R1__getSlave__unsigned_int, + "", + ""); + I_Method1(const osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_Slave_R1__getSlave__unsigned_int, + "", + ""); + I_Method1(osg::View::Slave *, findSlaveForCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __Slave_P1__findSlaveForCamera__osg_Camera_P1, + "", + ""); + I_Method0(void, updateSlaves, + Properties::NON_VIRTUAL, + __void__updateSlaves, + "", + ""); + I_Method1(void, updateSlave, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__updateSlave__unsigned_int, + "", + ""); I_Constructor0(____View, "", ""); @@ -120,6 +373,18 @@ BEGIN_OBJECT_REFLECTOR(osg::View) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::View::Slave) + I_Constructor0(____Slave, + "", + ""); + I_Constructor3(IN, osg::Camera *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset, + ____Slave__osg_Camera_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::View::Slave &, rhs, + Properties::NON_EXPLICIT, + ____Slave__C5_Slave_R1, + "", + ""); I_Constructor0(____Slave, "", ""); @@ -135,5 +400,37 @@ BEGIN_VALUE_REFLECTOR(osg::View::Slave) I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera); I_PublicMemberProperty(osg::Matrixd, _projectionOffset); I_PublicMemberProperty(osg::Matrixd, _viewOffset); + I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::View::Slave) + I_Constructor0(____Slave, + "", + ""); + I_Constructor3(IN, osg::Camera *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset, + ____Slave__osg_Camera_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::View::Slave &, rhs, + Properties::NON_EXPLICIT, + ____Slave__C5_Slave_R1, + "", + ""); + I_Constructor0(____Slave, + "", + ""); + I_Constructor3(IN, osg::Camera *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset, + ____Slave__osg_Camera_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor1(IN, const osg::View::Slave &, rhs, + Properties::NON_EXPLICIT, + ____Slave__C5_Slave_R1, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera); + I_PublicMemberProperty(osg::Matrixd, _projectionOffset); + I_PublicMemberProperty(osg::Matrixd, _viewOffset); + I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/FileUtils.cpp b/src/osgWrappers/osgDB/FileUtils.cpp index 3b5427093..13a1dfe78 100644 --- a/src/osgWrappers/osgDB/FileUtils.cpp +++ b/src/osgWrappers/osgDB/FileUtils.cpp @@ -20,8 +20,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DirectoryContents); - BEGIN_ENUM_REFLECTOR(osgDB::CaseSensitivity) I_EnumLabel(osgDB::CASE_SENSITIVE); I_EnumLabel(osgDB::CASE_INSENSITIVE); diff --git a/src/osgWrappers/osgDB/GNUmakefile b/src/osgWrappers/osgDB/GNUmakefile index 705c3f4db..2de01e4d7 100644 --- a/src/osgWrappers/osgDB/GNUmakefile +++ b/src/osgWrappers/osgDB/GNUmakefile @@ -2,22 +2,9 @@ TOPDIR = ../../.. include $(TOPDIR)/Make/makedefs CXXFILES =\ - Archive.cpp\ - DatabasePager.cpp\ - DotOsgWrapper.cpp\ - DynamicLibrary.cpp\ - Field.cpp\ - FieldReader.cpp\ - FieldReaderIterator.cpp\ FileUtils.cpp\ - ImageOptions.cpp\ - Input.cpp\ - Output.cpp\ - ParameterOutput.cpp\ - ReaderWriter.cpp\ ReentrantMutex.cpp\ Registry.cpp\ - SharedStateManager.cpp\ LIBS += -losgDB -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgDB/ReentrantMutex.cpp b/src/osgWrappers/osgDB/ReentrantMutex.cpp index 342fde2c0..317320c0c 100644 --- a/src/osgWrappers/osgDB/ReentrantMutex.cpp +++ b/src/osgWrappers/osgDB/ReentrantMutex.cpp @@ -20,28 +20,41 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgDB::ReadWriteMutex) - I_Constructor0(____ReadWriteMutex, +BEGIN_OBJECT_REFLECTOR(osgDB::ReentrantMutex) + I_Constructor0(____ReentrantMutex, "", ""); - I_Method0(int, readLock, + I_Method0(int, lock, Properties::VIRTUAL, - __int__readLock, + __int__lock, "", ""); - I_Method0(int, readUnlock, + I_Method0(int, unlock, Properties::VIRTUAL, - __int__readUnlock, + __int__unlock, "", ""); - I_Method0(int, writeLock, + I_Method0(int, trylock, Properties::VIRTUAL, - __int__writeLock, + __int__trylock, "", ""); - I_Method0(int, writeUnlock, + I_Constructor0(____ReentrantMutex, + "", + ""); + I_Method0(int, lock, Properties::VIRTUAL, - __int__writeUnlock, + __int__lock, + "", + ""); + I_Method0(int, unlock, + Properties::VIRTUAL, + __int__unlock, + "", + ""); + I_Method0(int, trylock, + Properties::VIRTUAL, + __int__trylock, "", ""); END_REFLECTOR @@ -65,21 +78,23 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReentrantMutex) __int__trylock, "", ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osgDB::ScopedReadLock) - I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, - Properties::NON_EXPLICIT, - ____ScopedReadLock__ReadWriteMutex_R1, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osgDB::ScopedWriteLock) - I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, - Properties::NON_EXPLICIT, - ____ScopedWriteLock__ReadWriteMutex_R1, + I_Constructor0(____ReentrantMutex, "", ""); + I_Method0(int, lock, + Properties::VIRTUAL, + __int__lock, + "", + ""); + I_Method0(int, unlock, + Properties::VIRTUAL, + __int__unlock, + "", + ""); + I_Method0(int, trylock, + Properties::VIRTUAL, + __int__trylock, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp index 4fbe145a1..ddec7b7f5 100644 --- a/src/osgWrappers/osgDB/Registry.cpp +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -10,24 +10,25 @@ #include #include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -37,26 +38,409 @@ #undef OUT #endif -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::basic_type_wrapper) - I_Constructor0(____basic_type_wrapper, - "", - ""); - I_Method1(bool, matches, IN, const osg::Object *, proto, - Properties::PURE_VIRTUAL, - __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, - ____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_BaseType(osg::Referenced); + I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, + Properties::NON_VIRTUAL, + __void__readCommandLine__osg_ArgumentParser_R1, + "read the command line arguments. ", + ""); + I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, + Properties::NON_VIRTUAL, + __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(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, + Properties::NON_VIRTUAL, + __bool__readPluginAliasConfigurationFile__C5_std_string_R1, + "Reads a file that configures extension mappings. ", + "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); + I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, + __void__addDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, + __void__removeDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, + __void__addReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, + __void__removeReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__loadLibrary__C5_std_string_R1, + "find the library in the OSG_LIBRARY_PATH and load it. ", + ""); + I_Method1(bool, closeLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __bool__closeLibrary__C5_std_string_R1, + "close the attached library with specified name. ", + ""); + I_Method0(void, closeAllLibraries, + Properties::NON_VIRTUAL, + __void__closeAllLibraries, + "close all libraries. ", + ""); + I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, + "", + ""); + I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Object_P1__readObject__Input_R1, + "", + ""); + I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Image_P1__readImage__Input_R1, + "", + ""); + I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__readDrawable__Input_R1, + "", + ""); + I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__readUniform__Input_R1, + "", + ""); + I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_StateAttribute_P1__readStateAttribute__Input_R1, + "", + ""); + I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Node_P1__readNode__Input_R1, + "", + ""); + I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, + Properties::NON_VIRTUAL, + __bool__writeObject__C5_osg_Object_R1__Output_R1, + "", + ""); + I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setReadFileCallback__ReadFileCallback_P1, + "Set the Registry callback to use in place of the default readFile calls. ", + ""); + I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __ReadFileCallback_P1__getReadFileCallback, + "Get the readFile callback. ", + ""); + I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setWriteFileCallback__WriteFileCallback_P1, + "Set the Registry callback to use in place of the default writeFile calls. ", + ""); + I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __WriteFileCallback_P1__getWriteFileCallback, + "Get the writeFile callback. ", + ""); + I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCreateNodeFromImage, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCreateNodeFromImage__bool, + "", + ""); + I_Method0(bool, getCreateNodeFromImage, + Properties::NON_VIRTUAL, + __bool__getCreateNodeFromImage, + "", + ""); + I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, + Properties::NON_VIRTUAL, + __void__setOptions__ReaderWriter_Options_P1, + "", + ""); + I_Method0(osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, + __ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, + __C5_ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(void, initFilePathLists, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__initDataFilePathList, + "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", + ""); + I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __FilePathList_R1__getDataFilePathList, + "get the data file path which is used when search for data files. ", + ""); + I_Method0(const osgDB::FilePathList &, getDataFilePathList, + Properties::NON_VIRTUAL, + __C5_FilePathList_R1__getDataFilePathList, + "get the const data file path which is used when search for data files. ", + ""); + I_Method0(void, initLibraryFilePathList, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__removeFromArchiveCache__C5_std_string_R1, + "Remove archive from cache. ", + ""); + I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, + "Get an archive from the archive cache. ", + ""); + I_Method0(void, clearArchiveCache, + Properties::NON_VIRTUAL, + __void__clearArchiveCache, + "Remove all archives from the archive cache. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __DynamicLibrary_P1__getLibrary__C5_std_string_R1, + "get the attached library with specified name. ", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, + Properties::NON_VIRTUAL, + __void__setDatabasePager__DatabasePager_P1, + "Set the DatabasePager. ", + ""); + I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, + Properties::NON_VIRTUAL, + __DatabasePager_P1__getOrCreateDatabasePager, + "Get the DatabasePager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __DatabasePager_P1__getDatabasePager, + "Get the DatabasePager. ", + "Return 0 if no DatabasePager has been assigned. "); + I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, + Properties::NON_VIRTUAL, + __void__setSharedStateManager__SharedStateManager_P1, + "Set the SharedStateManager. ", + ""); + I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, + Properties::NON_VIRTUAL, + __SharedStateManager_P1__getOrCreateSharedStateManager, + "Get the SharedStateManager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::SharedStateManager *, getSharedStateManager, + Properties::NON_VIRTUAL, + __SharedStateManager_P1__getSharedStateManager, + "Get the SharedStateManager. ", + "Return 0 if no SharedStateManager has been assigned. "); I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, Properties::NON_VIRTUAL, __void__readCommandLine__osg_ArgumentParser_R1, @@ -461,6 +845,847 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry) __Registry_P1__instance__bool_S, "", ""); + 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) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, + Properties::NON_VIRTUAL, + __void__readCommandLine__osg_ArgumentParser_R1, + "read the command line arguments. ", + ""); + I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, + Properties::NON_VIRTUAL, + __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(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, + Properties::NON_VIRTUAL, + __bool__readPluginAliasConfigurationFile__C5_std_string_R1, + "Reads a file that configures extension mappings. ", + "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); + I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, + __void__addDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, + __void__removeDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, + __void__addReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, + __void__removeReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__loadLibrary__C5_std_string_R1, + "find the library in the OSG_LIBRARY_PATH and load it. ", + ""); + I_Method1(bool, closeLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __bool__closeLibrary__C5_std_string_R1, + "close the attached library with specified name. ", + ""); + I_Method0(void, closeAllLibraries, + Properties::NON_VIRTUAL, + __void__closeAllLibraries, + "close all libraries. ", + ""); + I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, + "", + ""); + I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Object_P1__readObject__Input_R1, + "", + ""); + I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Image_P1__readImage__Input_R1, + "", + ""); + I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__readDrawable__Input_R1, + "", + ""); + I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__readUniform__Input_R1, + "", + ""); + I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_StateAttribute_P1__readStateAttribute__Input_R1, + "", + ""); + I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Node_P1__readNode__Input_R1, + "", + ""); + I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, + Properties::NON_VIRTUAL, + __bool__writeObject__C5_osg_Object_R1__Output_R1, + "", + ""); + I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setReadFileCallback__ReadFileCallback_P1, + "Set the Registry callback to use in place of the default readFile calls. ", + ""); + I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __ReadFileCallback_P1__getReadFileCallback, + "Get the readFile callback. ", + ""); + I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setWriteFileCallback__WriteFileCallback_P1, + "Set the Registry callback to use in place of the default writeFile calls. ", + ""); + I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __WriteFileCallback_P1__getWriteFileCallback, + "Get the writeFile callback. ", + ""); + I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCreateNodeFromImage, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCreateNodeFromImage__bool, + "", + ""); + I_Method0(bool, getCreateNodeFromImage, + Properties::NON_VIRTUAL, + __bool__getCreateNodeFromImage, + "", + ""); + I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, + Properties::NON_VIRTUAL, + __void__setOptions__ReaderWriter_Options_P1, + "", + ""); + I_Method0(osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, + __ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, + __C5_ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(void, initFilePathLists, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__initDataFilePathList, + "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", + ""); + I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __FilePathList_R1__getDataFilePathList, + "get the data file path which is used when search for data files. ", + ""); + I_Method0(const osgDB::FilePathList &, getDataFilePathList, + Properties::NON_VIRTUAL, + __C5_FilePathList_R1__getDataFilePathList, + "get the const data file path which is used when search for data files. ", + ""); + I_Method0(void, initLibraryFilePathList, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__removeFromArchiveCache__C5_std_string_R1, + "Remove archive from cache. ", + ""); + I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, + "Get an archive from the archive cache. ", + ""); + I_Method0(void, clearArchiveCache, + Properties::NON_VIRTUAL, + __void__clearArchiveCache, + "Remove all archives from the archive cache. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __DynamicLibrary_P1__getLibrary__C5_std_string_R1, + "get the attached library with specified name. ", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, + Properties::NON_VIRTUAL, + __void__setDatabasePager__DatabasePager_P1, + "Set the DatabasePager. ", + ""); + I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, + Properties::NON_VIRTUAL, + __DatabasePager_P1__getOrCreateDatabasePager, + "Get the DatabasePager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __DatabasePager_P1__getDatabasePager, + "Get the DatabasePager. ", + "Return 0 if no DatabasePager has been assigned. "); + I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, + Properties::NON_VIRTUAL, + __void__setSharedStateManager__SharedStateManager_P1, + "Set the SharedStateManager. ", + ""); + I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, + Properties::NON_VIRTUAL, + __SharedStateManager_P1__getOrCreateSharedStateManager, + "Get the SharedStateManager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::SharedStateManager *, getSharedStateManager, + Properties::NON_VIRTUAL, + __SharedStateManager_P1__getSharedStateManager, + "Get the SharedStateManager. ", + "Return 0 if no SharedStateManager has been assigned. "); + I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, + Properties::NON_VIRTUAL, + __void__readCommandLine__osg_ArgumentParser_R1, + "read the command line arguments. ", + ""); + I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, + Properties::NON_VIRTUAL, + __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(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, + Properties::NON_VIRTUAL, + __bool__readPluginAliasConfigurationFile__C5_std_string_R1, + "Reads a file that configures extension mappings. ", + "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); + I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, + __void__addDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, + __void__removeDotOsgWrapper__DotOsgWrapper_P1, + "", + ""); + I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, + __void__addReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, + __void__removeReaderWriter__ReaderWriter_P1, + "", + ""); + I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__loadLibrary__C5_std_string_R1, + "find the library in the OSG_LIBRARY_PATH and load it. ", + ""); + I_Method1(bool, closeLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __bool__closeLibrary__C5_std_string_R1, + "close the attached library with specified name. ", + ""); + I_Method0(void, closeAllLibraries, + Properties::NON_VIRTUAL, + __void__closeAllLibraries, + "close all libraries. ", + ""); + I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, + "", + ""); + I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Object_P1__readObject__Input_R1, + "", + ""); + I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Image_P1__readImage__Input_R1, + "", + ""); + I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__readDrawable__Input_R1, + "", + ""); + I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__readUniform__Input_R1, + "", + ""); + I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_StateAttribute_P1__readStateAttribute__Input_R1, + "", + ""); + I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Node_P1__readNode__Input_R1, + "", + ""); + I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, + Properties::NON_VIRTUAL, + __bool__writeObject__C5_osg_Object_R1__Output_R1, + "", + ""); + I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setReadFileCallback__ReadFileCallback_P1, + "Set the Registry callback to use in place of the default readFile calls. ", + ""); + I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __ReadFileCallback_P1__getReadFileCallback, + "Get the readFile callback. ", + ""); + I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setWriteFileCallback__WriteFileCallback_P1, + "Set the Registry callback to use in place of the default writeFile calls. ", + ""); + I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __WriteFileCallback_P1__getWriteFileCallback, + "Get the writeFile callback. ", + ""); + I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setCreateNodeFromImage, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCreateNodeFromImage__bool, + "", + ""); + I_Method0(bool, getCreateNodeFromImage, + Properties::NON_VIRTUAL, + __bool__getCreateNodeFromImage, + "", + ""); + I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, + Properties::NON_VIRTUAL, + __void__setOptions__ReaderWriter_Options_P1, + "", + ""); + I_Method0(osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, + __ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, + __C5_ReaderWriter_Options_P1__getOptions, + "", + ""); + I_Method0(void, initFilePathLists, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__initDataFilePathList, + "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", + ""); + I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __FilePathList_R1__getDataFilePathList, + "get the data file path which is used when search for data files. ", + ""); + I_Method0(const osgDB::FilePathList &, getDataFilePathList, + Properties::NON_VIRTUAL, + __C5_FilePathList_R1__getDataFilePathList, + "get the const data file path which is used when search for data files. ", + ""); + I_Method0(void, initLibraryFilePathList, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__removeFromArchiveCache__C5_std_string_R1, + "Remove archive from cache. ", + ""); + I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, + "Get an archive from the archive cache. ", + ""); + I_Method0(void, clearArchiveCache, + Properties::NON_VIRTUAL, + __void__clearArchiveCache, + "Remove all archives from the archive cache. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __DynamicLibrary_P1__getLibrary__C5_std_string_R1, + "get the attached library with specified name. ", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, + Properties::NON_VIRTUAL, + __void__setDatabasePager__DatabasePager_P1, + "Set the DatabasePager. ", + ""); + I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, + Properties::NON_VIRTUAL, + __DatabasePager_P1__getOrCreateDatabasePager, + "Get the DatabasePager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __DatabasePager_P1__getDatabasePager, + "Get the DatabasePager. ", + "Return 0 if no DatabasePager has been assigned. "); + I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, + Properties::NON_VIRTUAL, + __void__setSharedStateManager__SharedStateManager_P1, + "Set the SharedStateManager. ", + ""); + I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, + Properties::NON_VIRTUAL, + __SharedStateManager_P1__getOrCreateSharedStateManager, + "Get the SharedStateManager, creating one if one is not already created. ", + ""); + I_Method0(osgDB::SharedStateManager *, getSharedStateManager, + Properties::NON_VIRTUAL, + __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_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, + __Registry_P1__instance__bool_S, + "", + ""); I_SimpleProperty(bool, CreateNodeFromImage, __bool__getCreateNodeFromImage, __void__setCreateNodeFromImage__bool); @@ -488,6 +1713,7 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____ReadFileCallback, "", @@ -517,9 +1743,153 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); + 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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + 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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, + "", + ""); + I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, + Properties::PURE_VIRTUAL, + __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, + "", + ""); + I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, + Properties::PURE_VIRTUAL, + __bool__isValid__ReaderWriter_ReadResult_R1, + "", + ""); + I_Method1(bool, isValid, IN, osg::Object *, object, + Properties::PURE_VIRTUAL, + __bool__isValid__osg_Object_P1, + "", + ""); + 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, + Properties::PURE_VIRTUAL, + __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, + "", + ""); + I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, + Properties::PURE_VIRTUAL, + __bool__isValid__ReaderWriter_ReadResult_R1, + "", + ""); + I_Method1(bool, isValid, IN, osg::Object *, object, + Properties::PURE_VIRTUAL, + __bool__isValid__osg_Object_P1, + "", + ""); + I_PublicMemberProperty(std::string, _filename); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) + 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, + Properties::PURE_VIRTUAL, + __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, + "", + ""); + I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, + Properties::PURE_VIRTUAL, + __bool__isValid__ReaderWriter_ReadResult_R1, + "", + ""); + I_Method1(bool, isValid, IN, osg::Object *, object, + Properties::PURE_VIRTUAL, + __bool__isValid__osg_Object_P1, + "", + ""); I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", @@ -543,6 +1913,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____WriteFileCallback, "", @@ -567,5 +1938,73 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, "", ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____WriteFileCallback, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgFX/AnisotropicLighting.cpp b/src/osgWrappers/osgFX/AnisotropicLighting.cpp index 10e2e04ac..4cef6d899 100644 --- a/src/osgWrappers/osgFX/AnisotropicLighting.cpp +++ b/src/osgWrappers/osgFX/AnisotropicLighting.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) + I_BaseType(osgFX::Effect); I_BaseType(osgFX::Effect); I_Constructor0(____AnisotropicLighting, "", @@ -36,47 +37,289 @@ BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method0(const char *, effectName, Properties::VIRTUAL, __C5_char_P1__effectName, - "get the name of this Effect ", + "", ""); I_Method0(const char *, effectDescription, Properties::VIRTUAL, __C5_char_P1__effectDescription, - "get a brief description of this Effect ", + "", ""); I_Method0(const char *, effectAuthor, Properties::VIRTUAL, __C5_char_P1__effectAuthor, - "get the effect author's name ", + "", + ""); + I_Method0(osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, + __osg_Image_P1__getLightingMap, + "get the lighting map ", + ""); + I_Method0(const osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getLightingMap, + "get the const lighting map ", + ""); + I_Method1(void, setLightingMap, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setLightingMap__osg_Image_P1, + "set the lighting map ", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, + __osg_Image_P1__getLightingMap, + "get the lighting map ", + ""); + I_Method0(const osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getLightingMap, + "get the const lighting map ", + ""); + I_Method1(void, setLightingMap, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setLightingMap__osg_Image_P1, + "set the lighting map ", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) + I_BaseType(osgFX::Effect); + I_BaseType(osgFX::Effect); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, + __osg_Image_P1__getLightingMap, + "get the lighting map ", + ""); + I_Method0(const osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getLightingMap, + "get the const lighting map ", + ""); + I_Method1(void, setLightingMap, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setLightingMap__osg_Image_P1, + "set the lighting map ", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", ""); I_Method0(osg::Image *, getLightingMap, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgFX/BumpMapping.cpp b/src/osgWrappers/osgFX/BumpMapping.cpp index 308524e60..1c71e7746 100644 --- a/src/osgWrappers/osgFX/BumpMapping.cpp +++ b/src/osgWrappers/osgFX/BumpMapping.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) + I_BaseType(osgFX::Effect); I_BaseType(osgFX::Effect); I_Constructor0(____BumpMapping, "", @@ -38,47 +39,47 @@ BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method0(const char *, effectName, Properties::VIRTUAL, __C5_char_P1__effectName, - "get the name of this Effect ", + "", ""); I_Method0(const char *, effectDescription, Properties::VIRTUAL, __C5_char_P1__effectDescription, - "get a brief description of this Effect ", + "", ""); I_Method0(const char *, effectAuthor, Properties::VIRTUAL, __C5_char_P1__effectAuthor, - "get the effect author's name ", + "", ""); I_Method0(int, getLightNumber, Properties::NON_VIRTUAL, @@ -156,7 +157,423 @@ BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) "prepare children for bump lighting. ", "Actually calls prepareNode() for each child "); I_Method0(void, setUpDemo, + Properties::NON_VIRTUAL, + __void__setUpDemo, + "set up a demo environment with predefined diffuse and normal maps, as well as texture coordinates ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getDiffuseTextureUnit, + Properties::NON_VIRTUAL, + __int__getDiffuseTextureUnit, + "get the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method1(void, setDiffuseTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setDiffuseTextureUnit__int, + "set the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method0(int, getNormalMapTextureUnit, + Properties::NON_VIRTUAL, + __int__getNormalMapTextureUnit, + "get the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method1(void, setNormalMapTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setNormalMapTextureUnit__int, + "set the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method0(osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the diffuse color texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the const diffuse color texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, + __void__setOverrideDiffuseTexture__osg_Texture2D_P1, + "set the diffuse color texture that overrides children's texture ", + ""); + I_Method0(osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the normal map texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the const normal map texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, + __void__setOverrideNormalMapTexture__osg_Texture2D_P1, + "set the normal map texture that overrides children's texture ", + ""); + I_Method1(void, prepareGeometry, IN, osg::Geometry *, geo, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__prepareNode__osg_Node_P1, + "prepare a Node for bump lighting, calling prepareGeometry() for each Geometry ", + ""); + I_Method0(void, prepareChildren, + Properties::NON_VIRTUAL, + __void__prepareChildren, + "prepare children for bump lighting. ", + "Actually calls prepareNode() for each child "); + I_Method0(void, setUpDemo, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) + I_BaseType(osgFX::Effect); + I_BaseType(osgFX::Effect); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getDiffuseTextureUnit, + Properties::NON_VIRTUAL, + __int__getDiffuseTextureUnit, + "get the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method1(void, setDiffuseTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setDiffuseTextureUnit__int, + "set the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method0(int, getNormalMapTextureUnit, + Properties::NON_VIRTUAL, + __int__getNormalMapTextureUnit, + "get the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method1(void, setNormalMapTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setNormalMapTextureUnit__int, + "set the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method0(osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the diffuse color texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the const diffuse color texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, + __void__setOverrideDiffuseTexture__osg_Texture2D_P1, + "set the diffuse color texture that overrides children's texture ", + ""); + I_Method0(osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the normal map texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the const normal map texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, + __void__setOverrideNormalMapTexture__osg_Texture2D_P1, + "set the normal map texture that overrides children's texture ", + ""); + I_Method1(void, prepareGeometry, IN, osg::Geometry *, geo, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__prepareNode__osg_Node_P1, + "prepare a Node for bump lighting, calling prepareGeometry() for each Geometry ", + ""); + I_Method0(void, prepareChildren, + Properties::NON_VIRTUAL, + __void__prepareChildren, + "prepare children for bump lighting. ", + "Actually calls prepareNode() for each child "); + I_Method0(void, setUpDemo, + Properties::NON_VIRTUAL, + __void__setUpDemo, + "set up a demo environment with predefined diffuse and normal maps, as well as texture coordinates ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getDiffuseTextureUnit, + Properties::NON_VIRTUAL, + __int__getDiffuseTextureUnit, + "get the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method1(void, setDiffuseTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setDiffuseTextureUnit__int, + "set the texture unit that contains diffuse color texture. ", + "Default is 1 "); + I_Method0(int, getNormalMapTextureUnit, + Properties::NON_VIRTUAL, + __int__getNormalMapTextureUnit, + "get the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method1(void, setNormalMapTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setNormalMapTextureUnit__int, + "set the texture unit that contains normal map texture. ", + "Default is 0 "); + I_Method0(osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the diffuse color texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getOverrideDiffuseTexture, + "get the const diffuse color texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, + __void__setOverrideDiffuseTexture__osg_Texture2D_P1, + "set the diffuse color texture that overrides children's texture ", + ""); + I_Method0(osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the normal map texture that overrides children's texture ", + ""); + I_Method0(const osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getOverrideNormalMapTexture, + "get the const normal map texture that overrides children's texture ", + ""); + I_Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, + __void__setOverrideNormalMapTexture__osg_Texture2D_P1, + "set the normal map texture that overrides children's texture ", + ""); + I_Method1(void, prepareGeometry, IN, osg::Geometry *, geo, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__prepareNode__osg_Node_P1, + "prepare a Node for bump lighting, calling prepareGeometry() for each Geometry ", + ""); + I_Method0(void, prepareChildren, + Properties::NON_VIRTUAL, + __void__prepareChildren, + "prepare children for bump lighting. ", + "Actually calls prepareNode() for each child "); + I_Method0(void, setUpDemo, + Properties::NON_VIRTUAL, __void__setUpDemo, "set up a demo environment with predefined diffuse and normal maps, as well as texture coordinates ", ""); diff --git a/src/osgWrappers/osgFX/Cartoon.cpp b/src/osgWrappers/osgFX/Cartoon.cpp index da2f2eade..073db126d 100644 --- a/src/osgWrappers/osgFX/Cartoon.cpp +++ b/src/osgWrappers/osgFX/Cartoon.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) + I_BaseType(osgFX::Effect); I_BaseType(osgFX::Effect); I_Constructor0(____Cartoon, "", @@ -36,47 +37,307 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method0(const char *, effectName, Properties::VIRTUAL, __C5_char_P1__effectName, - "get the name of this Effect ", + "", ""); I_Method0(const char *, effectDescription, Properties::VIRTUAL, __C5_char_P1__effectDescription, - "get a brief description of this Effect ", + "", ""); I_Method0(const char *, effectAuthor, Properties::VIRTUAL, __C5_char_P1__effectAuthor, - "get the effect author's name ", + "", + ""); + I_Method0(const osg::Vec4 &, getOutlineColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getOutlineColor, + "get the outline color ", + ""); + I_Method1(void, setOutlineColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setOutlineColor__C5_osg_Vec4_R1, + "set the outline color ", + ""); + I_Method0(float, getOutlineLineWidth, + Properties::NON_VIRTUAL, + __float__getOutlineLineWidth, + "get the outline line width ", + ""); + I_Method1(void, setOutlineLineWidth, IN, float, w, + Properties::NON_VIRTUAL, + __void__setOutlineLineWidth__float, + "set the outline line width ", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(const osg::Vec4 &, getOutlineColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getOutlineColor, + "get the outline color ", + ""); + I_Method1(void, setOutlineColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setOutlineColor__C5_osg_Vec4_R1, + "set the outline color ", + ""); + I_Method0(float, getOutlineLineWidth, + Properties::NON_VIRTUAL, + __float__getOutlineLineWidth, + "get the outline line width ", + ""); + I_Method1(void, setOutlineLineWidth, IN, float, w, + Properties::NON_VIRTUAL, + __void__setOutlineLineWidth__float, + "set the outline line width ", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) + I_BaseType(osgFX::Effect); + I_BaseType(osgFX::Effect); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(const osg::Vec4 &, getOutlineColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getOutlineColor, + "get the outline color ", + ""); + I_Method1(void, setOutlineColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setOutlineColor__C5_osg_Vec4_R1, + "set the outline color ", + ""); + I_Method0(float, getOutlineLineWidth, + Properties::NON_VIRTUAL, + __float__getOutlineLineWidth, + "get the outline line width ", + ""); + I_Method1(void, setOutlineLineWidth, IN, float, w, + Properties::NON_VIRTUAL, + __void__setOutlineLineWidth__float, + "set the outline line width ", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", ""); I_Method0(const osg::Vec4 &, getOutlineColor, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgFX/Effect.cpp b/src/osgWrappers/osgFX/Effect.cpp index bdce597ad..6905dc57d 100644 --- a/src/osgWrappers/osgFX/Effect.cpp +++ b/src/osgWrappers/osgFX/Effect.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -29,6 +29,7 @@ BEGIN_ENUM_REFLECTOR(osgFX::Effect::TechniqueSelection) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____Effect, "", @@ -40,17 +41,300 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", + ""); + I_Method0(const char *, effectName, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(bool, getEnabled, + Properties::NON_VIRTUAL, + __bool__getEnabled, + "get whether the effect is enabled or not ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "set whether the effect is enabled or not ", + ""); + I_Method0(void, setUpDemo, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getNumTechniques, + "get the number of techniques defined for this Effect ", + ""); + I_Method1(osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, + __Technique_P1__getTechnique__int, + "get the i-th Technique ", + ""); + I_Method1(const osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Technique_P1__getTechnique__int, + "get the i-th const Technique ", + ""); + I_Method0(int, getSelectedTechnique, + Properties::NON_VIRTUAL, + __int__getSelectedTechnique, + "get the index of the currently selected Technique ", + ""); + I_MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT, + Properties::NON_VIRTUAL, + __void__selectTechnique__int, + "select a technique or enable automatic detection ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "custom traversal ", + ""); + I_Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __void__inherited_traverse__osg_NodeVisitor_R1, + "default traversal ", + ""); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, effectName, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(bool, getEnabled, + Properties::NON_VIRTUAL, + __bool__getEnabled, + "get whether the effect is enabled or not ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "set whether the effect is enabled or not ", + ""); + I_Method0(void, setUpDemo, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getNumTechniques, + "get the number of techniques defined for this Effect ", + ""); + I_Method1(osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, + __Technique_P1__getTechnique__int, + "get the i-th Technique ", + ""); + I_Method1(const osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Technique_P1__getTechnique__int, + "get the i-th const Technique ", + ""); + I_Method0(int, getSelectedTechnique, + Properties::NON_VIRTUAL, + __int__getSelectedTechnique, + "get the index of the currently selected Technique ", + ""); + I_MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT, + Properties::NON_VIRTUAL, + __void__selectTechnique__int, + "select a technique or enable automatic detection ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "custom traversal ", + ""); + I_Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osgFX::Effect::TechniqueSelection) + I_EnumLabel(osgFX::Effect::AUTO_DETECT); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, effectName, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectName, + "get the name of this Effect ", + ""); + I_Method0(const char *, effectDescription, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectDescription, + "get a brief description of this Effect ", + ""); + I_Method0(const char *, effectAuthor, + Properties::PURE_VIRTUAL, + __C5_char_P1__effectAuthor, + "get the effect author's name ", + ""); + I_Method0(bool, getEnabled, + Properties::NON_VIRTUAL, + __bool__getEnabled, + "get whether the effect is enabled or not ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "set whether the effect is enabled or not ", + ""); + I_Method0(void, setUpDemo, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getNumTechniques, + "get the number of techniques defined for this Effect ", + ""); + I_Method1(osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, + __Technique_P1__getTechnique__int, + "get the i-th Technique ", + ""); + I_Method1(const osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Technique_P1__getTechnique__int, + "get the i-th const Technique ", + ""); + I_Method0(int, getSelectedTechnique, + Properties::NON_VIRTUAL, + __int__getSelectedTechnique, + "get the index of the currently selected Technique ", + ""); + I_MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT, + Properties::NON_VIRTUAL, + __void__selectTechnique__int, + "select a technique or enable automatic detection ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "custom traversal ", + ""); + I_Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __void__inherited_traverse__osg_NodeVisitor_R1, + "default traversal ", + ""); + 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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", ""); I_Method0(const char *, effectName, Properties::PURE_VIRTUAL, diff --git a/src/osgWrappers/osgFX/GNUmakefile b/src/osgWrappers/osgFX/GNUmakefile index c51717450..b3c3c8ee0 100644 --- a/src/osgWrappers/osgFX/GNUmakefile +++ b/src/osgWrappers/osgFX/GNUmakefile @@ -10,8 +10,6 @@ CXXFILES =\ Registry.cpp\ Scribe.cpp\ SpecularHighlights.cpp\ - Technique.cpp\ - Validator.cpp\ LIBS += -losgFX -losg -losgIntrospection -losgUtil -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgFX/MultiTextureControl.cpp b/src/osgWrappers/osgFX/MultiTextureControl.cpp index ddcb077a2..d1c715015 100644 --- a/src/osgWrappers/osgFX/MultiTextureControl.cpp +++ b/src/osgWrappers/osgFX/MultiTextureControl.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +24,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____MultiTextureControl, "", @@ -35,32 +36,200 @@ BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setTextureWeight__unsigned_int__float, + "", + ""); + I_Method1(float, getTextureWeight, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __float__getTextureWeight__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTextureWeights, + Properties::NON_VIRTUAL, + __unsigned_int__getNumTextureWeights, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight, + Properties::NON_VIRTUAL, + __void__setTextureWeight__unsigned_int__float, + "", + ""); + I_Method1(float, getTextureWeight, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __float__getTextureWeight__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTextureWeights, + Properties::NON_VIRTUAL, + __unsigned_int__getNumTextureWeights, + "", + ""); + I_ArrayProperty(float, TextureWeight, + __float__getTextureWeight__unsigned_int, + __void__setTextureWeight__unsigned_int__float, + __unsigned_int__getNumTextureWeights, + 0, + 0, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight, + Properties::NON_VIRTUAL, + __void__setTextureWeight__unsigned_int__float, + "", + ""); + I_Method1(float, getTextureWeight, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __float__getTextureWeight__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumTextureWeights, + Properties::NON_VIRTUAL, + __unsigned_int__getNumTextureWeights, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgFX/Registry.cpp b/src/osgWrappers/osgFX/Registry.cpp index fcd339cd3..6cfe1f486 100644 --- a/src/osgWrappers/osgFX/Registry.cpp +++ b/src/osgWrappers/osgFX/Registry.cpp @@ -21,27 +21,17 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >, osgFX::Registry::EffectMap); - -BEGIN_OBJECT_REFLECTOR(osgFX::Registry) - I_BaseType(osg::Referenced); - I_Method1(void, registerEffect, IN, const osgFX::Effect *, effect, - Properties::NON_VIRTUAL, - __void__registerEffect__C5_Effect_P1, - "", - ""); - I_Method0(const osgFX::Registry::EffectMap &, getEffectMap, - Properties::NON_VIRTUAL, - __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); +BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) + I_Constructor1(IN, const osgFX::Effect *, effect, + Properties::NON_EXPLICIT, + ____Proxy__C5_Effect_P1, + "", + ""); + I_Constructor1(IN, const osgFX::Effect *, effect, + Properties::NON_EXPLICIT, + ____Proxy__C5_Effect_P1, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) @@ -50,7 +40,10 @@ BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) ____Proxy__C5_Effect_P1, "", ""); + I_Constructor1(IN, const osgFX::Effect *, effect, + Properties::NON_EXPLICIT, + ____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 2cb167723..3033bb78a 100644 --- a/src/osgWrappers/osgFX/Scribe.cpp +++ b/src/osgWrappers/osgFX/Scribe.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) + I_BaseType(osgFX::Effect); I_BaseType(osgFX::Effect); I_Constructor0(____Scribe, "", @@ -36,47 +37,274 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method0(const char *, effectName, Properties::VIRTUAL, __C5_char_P1__effectName, - "get the name of this Effect ", + "", ""); I_Method0(const char *, effectDescription, Properties::VIRTUAL, __C5_char_P1__effectDescription, - "get a brief description of this Effect ", + "", ""); I_Method0(const char *, effectAuthor, Properties::VIRTUAL, __C5_char_P1__effectAuthor, - "get the effect author's name ", + "", + ""); + I_Method0(const osg::Vec4 &, getWireframeColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getWireframeColor, + "get the wireframe color ", + ""); + I_Method1(void, setWireframeColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setWireframeColor__C5_osg_Vec4_R1, + "set the wireframe color ", + ""); + I_Method0(float, getWireframeLineWidth, + Properties::NON_VIRTUAL, + __float__getWireframeLineWidth, + "get the wireframe line width ", + ""); + I_Method1(void, setWireframeLineWidth, IN, float, w, + Properties::NON_VIRTUAL, + __void__setWireframeLineWidth__float, + "set the wireframe line width ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(const osg::Vec4 &, getWireframeColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getWireframeColor, + "get the wireframe color ", + ""); + I_Method1(void, setWireframeColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setWireframeColor__C5_osg_Vec4_R1, + "set the wireframe color ", + ""); + I_Method0(float, getWireframeLineWidth, + Properties::NON_VIRTUAL, + __float__getWireframeLineWidth, + "get the wireframe line width ", + ""); + I_Method1(void, setWireframeLineWidth, IN, float, w, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) + I_BaseType(osgFX::Effect); + I_BaseType(osgFX::Effect); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(const osg::Vec4 &, getWireframeColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getWireframeColor, + "get the wireframe color ", + ""); + I_Method1(void, setWireframeColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setWireframeColor__C5_osg_Vec4_R1, + "set the wireframe color ", + ""); + I_Method0(float, getWireframeLineWidth, + Properties::NON_VIRTUAL, + __float__getWireframeLineWidth, + "get the wireframe line width ", + ""); + I_Method1(void, setWireframeLineWidth, IN, float, w, + Properties::NON_VIRTUAL, + __void__setWireframeLineWidth__float, + "set the wireframe line width ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", ""); I_Method0(const osg::Vec4 &, getWireframeColor, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgFX/SpecularHighlights.cpp b/src/osgWrappers/osgFX/SpecularHighlights.cpp index 675663039..875ac2c9d 100644 --- a/src/osgWrappers/osgFX/SpecularHighlights.cpp +++ b/src/osgWrappers/osgFX/SpecularHighlights.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) + I_BaseType(osgFX::Effect); I_BaseType(osgFX::Effect); I_Constructor0(____SpecularHighlights, "", @@ -36,47 +37,340 @@ BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method0(const char *, effectName, Properties::VIRTUAL, __C5_char_P1__effectName, - "get the name of this Effect ", + "", ""); I_Method0(const char *, effectDescription, Properties::VIRTUAL, __C5_char_P1__effectDescription, - "get a brief description of this Effect ", + "", ""); I_Method0(const char *, effectAuthor, Properties::VIRTUAL, __C5_char_P1__effectAuthor, - "get the effect author's name ", + "", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getTextureUnit, + Properties::NON_VIRTUAL, + __int__getTextureUnit, + "get the texture unit number ", + ""); + I_Method1(void, setTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setTextureUnit__int, + "set the texture unit that will be used to apply the cube map ", + ""); + I_Method0(const osg::Vec4 &, getSpecularColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getSpecularColor, + "get the specular color ", + ""); + I_Method1(void, setSpecularColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setSpecularColor__C5_osg_Vec4_R1, + "set the specular color ", + ""); + I_Method0(float, getSpecularExponent, + Properties::NON_VIRTUAL, + __float__getSpecularExponent, + "get the specular exponent ", + ""); + I_Method1(void, setSpecularExponent, IN, float, e, + Properties::NON_VIRTUAL, + __void__setSpecularExponent__float, + "set the specular exponent ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getTextureUnit, + Properties::NON_VIRTUAL, + __int__getTextureUnit, + "get the texture unit number ", + ""); + I_Method1(void, setTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setTextureUnit__int, + "set the texture unit that will be used to apply the cube map ", + ""); + I_Method0(const osg::Vec4 &, getSpecularColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getSpecularColor, + "get the specular color ", + ""); + I_Method1(void, setSpecularColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setSpecularColor__C5_osg_Vec4_R1, + "set the specular color ", + ""); + I_Method0(float, getSpecularExponent, + Properties::NON_VIRTUAL, + __float__getSpecularExponent, + "get the specular exponent ", + ""); + I_Method1(void, setSpecularExponent, IN, float, e, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) + I_BaseType(osgFX::Effect); + I_BaseType(osgFX::Effect); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", + ""); + I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, + __int__getLightNumber, + "get the OpenGL light number ", + ""); + I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, + __void__setLightNumber__int, + "set the OpenGL light number that will be used in lighting computations ", + ""); + I_Method0(int, getTextureUnit, + Properties::NON_VIRTUAL, + __int__getTextureUnit, + "get the texture unit number ", + ""); + I_Method1(void, setTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, + __void__setTextureUnit__int, + "set the texture unit that will be used to apply the cube map ", + ""); + I_Method0(const osg::Vec4 &, getSpecularColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getSpecularColor, + "get the specular color ", + ""); + I_Method1(void, setSpecularColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setSpecularColor__C5_osg_Vec4_R1, + "set the specular color ", + ""); + I_Method0(float, getSpecularExponent, + Properties::NON_VIRTUAL, + __float__getSpecularExponent, + "get the specular exponent ", + ""); + I_Method1(void, setSpecularExponent, IN, float, e, + Properties::NON_VIRTUAL, + __void__setSpecularExponent__float, + "set the specular exponent ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const char *, effectName, + Properties::VIRTUAL, + __C5_char_P1__effectName, + "", + ""); + I_Method0(const char *, effectDescription, + Properties::VIRTUAL, + __C5_char_P1__effectDescription, + "", + ""); + I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, + __C5_char_P1__effectAuthor, + "", ""); I_Method0(int, getLightNumber, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp index f6f4f0990..d88e1768a 100644 --- a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp +++ b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp @@ -10,9 +10,9 @@ #include #include +#include #include #include -#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0, Properties::NON_EXPLICIT, @@ -40,8 +41,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setPrintOutTimingInfo__bool, @@ -93,24 +94,317 @@ BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) "", ""); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, - "Handle events, return true if handled, false otherwise. ", + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0, + Properties::NON_EXPLICIT, + ____AnimationPathManipulator__osg_AnimationPath_P1, + "", + ""); + I_Constructor1(IN, const std::string &, filename, + Properties::NON_EXPLICIT, + ____AnimationPathManipulator__C5_std_string_R1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setPrintOutTimingInfo, IN, bool, printOutTiminInfo, + Properties::NON_VIRTUAL, + __void__setPrintOutTimingInfo__bool, + "", + ""); + I_Method0(bool, getPrintOutTimingInfo, + Properties::NON_VIRTUAL, + __bool__getPrintOutTimingInfo, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::NON_VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::NON_VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, home, IN, double, currentTime, + Properties::NON_VIRTUAL, + __void__home__double, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0, + Properties::NON_EXPLICIT, + ____AnimationPathManipulator__osg_AnimationPath_P1, + "", + ""); + I_Constructor1(IN, const std::string &, filename, + Properties::NON_EXPLICIT, + ____AnimationPathManipulator__C5_std_string_R1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setPrintOutTimingInfo, IN, bool, printOutTiminInfo, + Properties::NON_VIRTUAL, + __void__setPrintOutTimingInfo__bool, + "", + ""); + I_Method0(bool, getPrintOutTimingInfo, + Properties::NON_VIRTUAL, + __bool__getPrintOutTimingInfo, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::NON_VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::NON_VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, home, IN, double, currentTime, + Properties::NON_VIRTUAL, + __void__home__double, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0, + Properties::NON_EXPLICIT, + ____AnimationPathManipulator__osg_AnimationPath_P1, + "", + ""); + I_Constructor1(IN, const std::string &, filename, + Properties::NON_EXPLICIT, + ____AnimationPathManipulator__C5_std_string_R1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setPrintOutTimingInfo, IN, bool, printOutTiminInfo, + Properties::NON_VIRTUAL, + __void__setPrintOutTimingInfo__bool, + "", + ""); + I_Method0(bool, getPrintOutTimingInfo, + Properties::NON_VIRTUAL, + __bool__getPrintOutTimingInfo, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::NON_VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::NON_VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, home, IN, double, currentTime, + Properties::NON_VIRTUAL, + __void__home__double, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgGA/DriveManipulator.cpp b/src/osgWrappers/osgGA/DriveManipulator.cpp index 1f75cb076..9634681eb 100644 --- a/src/osgWrappers/osgGA/DriveManipulator.cpp +++ b/src/osgWrappers/osgGA/DriveManipulator.cpp @@ -10,9 +10,9 @@ #include #include +#include +#include #include -#include -#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____DriveManipulator, "", @@ -33,8 +34,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, @@ -58,37 +59,360 @@ BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) I_Method1(void, setNode, IN, osg::Node *, x, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_osg_Node_P1__getNode, - "Return const node if attached. ", + "", ""); I_Method0(osg::Node *, getNode, Properties::VIRTUAL, __osg_Node_P1__getNode, - "Return node if attached. ", + "", ""); I_Method0(void, computeHomePosition, Properties::VIRTUAL, __void__computeHomePosition, - "Compute the home position. ", + "", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, - "Handle events, return true if handled, false otherwise. ", + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, + __double__getModelScale, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, + __double__getVelocity, + "", + ""); + I_Method1(void, setHeight, IN, double, in_h, + Properties::NON_VIRTUAL, + __void__setHeight__double, + "", + ""); + I_Method0(double, getHeight, + Properties::NON_VIRTUAL, + __double__getHeight, + "", + ""); + I_Constructor0(____DriveManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, + __double__getModelScale, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, + __double__getVelocity, + "", + ""); + I_Method1(void, setHeight, IN, double, in_h, + Properties::NON_VIRTUAL, + __void__setHeight__double, + "", + ""); + I_Method0(double, getHeight, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____DriveManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, + __double__getModelScale, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, + __double__getVelocity, + "", + ""); + I_Method1(void, setHeight, IN, double, in_h, + Properties::NON_VIRTUAL, + __void__setHeight__double, + "", + ""); + I_Method0(double, getHeight, + Properties::NON_VIRTUAL, + __double__getHeight, + "", + ""); + I_Constructor0(____DriveManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgGA/EventQueue.cpp b/src/osgWrappers/osgGA/EventQueue.cpp index 7e2a667a2..a644aee8e 100644 --- a/src/osgWrappers/osgGA/EventQueue.cpp +++ b/src/osgWrappers/osgGA/EventQueue.cpp @@ -10,7 +10,9 @@ #include #include -#include +#include +#include +#include #include #include @@ -26,6 +28,222 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::Even BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS, + Properties::NON_EXPLICIT, + ____EventQueue__GUIEventAdapter_MouseYOrientation, + "", + ""); + I_Method1(void, setEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __void__setEvents__Events_R1, + "Set events. ", + ""); + I_Method1(bool, takeEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __bool__takeEvents__Events_R1, + "Take the entire event queue leaving the EventQueue' event queue empty. ", + ""); + I_Method1(bool, copyEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__appendEvents__Events_R1, + "Add events to end of event queue. ", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__addEvent__GUIEventAdapter_P1, + "Add an event to the end of the event queue. ", + ""); + I_Method1(void, setUseFixedMouseInputRange, IN, bool, useFixedMouseInputRange, + Properties::NON_VIRTUAL, + __void__setUseFixedMouseInputRange__bool, + "Specify if mouse coordinates should be transformed into a pre defined input range, or whether they should be simply based on as local coordinates to the window that generated the mouse events. ", + ""); + I_Method0(bool, getUseFixedMouseInputRange, + Properties::NON_VIRTUAL, + __bool__getUseFixedMouseInputRange, + "Get whether the mouse coordinates should be transformed into a pre defined input range. ", + ""); + I_Method4(void, setMouseInputRange, IN, float, xMin, IN, float, yMin, IN, float, xMax, IN, float, yMax, + Properties::NON_VIRTUAL, + __void__setMouseInputRange__float__float__float__float, + "Set the mouse input range. ", + ""); + I_Method4(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__windowResize__int__int__int__int, + "Method for adapting window resize event, placing this event on the back of the event queue. ", + ""); + I_Method5(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, double, time, + Properties::NON_VIRTUAL, + __void__windowResize__int__int__int__int__double, + "Method for adapting window resize event, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method1(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, + Properties::NON_VIRTUAL, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion__double, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__mouseScroll2D__float__float, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseScroll2D, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseScroll2D__float__float__double, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method1(void, penPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__penPressure__float, + "Method for adapting pen pressure events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, penPressure, IN, float, pressure, IN, double, time, + Properties::NON_VIRTUAL, + __void__penPressure__float__double, + "Method for adapting pen pressure events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, + Properties::NON_VIRTUAL, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool, + "Method for adapting pen proximity events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, IN, double, time, + Properties::NON_VIRTUAL, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool__double, + "Method for adapting pen proximity events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, mouseWarped, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__mouseWarped__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, + Properties::NON_VIRTUAL, + __void__mouseMotion__float__float, + "Method for adapting mouse motion events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseMotion, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseMotion__float__float__double, + "Method for adapting mouse motion events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method3(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseButtonPress__float__float__unsigned_int__double, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", + "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, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseDoubleButtonPress__float__float__unsigned_int__double, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", + "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, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseButtonRelease__float__float__unsigned_int__double, + "Method for adapting mouse button release events, placing this event on the back of the event queue, with specified time. ", + "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); + I_Method1(void, keyPress, IN, int, key, + Properties::NON_VIRTUAL, + __void__keyPress__int, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); + I_Method2(void, keyPress, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, + __void__keyPress__int__double, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); + I_Method1(void, keyRelease, IN, int, key, + Properties::NON_VIRTUAL, + __void__keyRelease__int, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); + I_Method2(void, keyRelease, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, + __void__keyRelease__int__double, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); + I_Method0(void, closeWindow, + Properties::NON_VIRTUAL, + __void__closeWindow, + "Method for adapting close window events. ", + ""); + I_Method1(void, closeWindow, IN, double, time, + Properties::NON_VIRTUAL, + __void__closeWindow__double, + "Method for adapting close window event with specified event time. ", + ""); + I_Method0(void, quitApplication, + Properties::NON_VIRTUAL, + __void__quitApplication, + "Method for adapting application quit events. ", + ""); + I_Method1(void, quitApplication, IN, double, time, + Properties::NON_VIRTUAL, + __void__quitApplication__double, + "Method for adapting application quit events with specified event time. ", + ""); + I_Method1(void, frame, IN, double, time, + Properties::NON_VIRTUAL, + __void__frame__double, + "Method for adapting frame events. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEvent, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, + __C5_GUIEventAdapter_P1__getCurrentEventState, + "", + ""); I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS, Properties::NON_EXPLICIT, ____EventQueue__GUIEventAdapter_MouseYOrientation, @@ -258,44 +476,455 @@ BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue) __void__setUseFixedMouseInputRange__bool); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventAdapter >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgGA::GUIEventAdapter *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventAdapter > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgGA::GUIEventAdapter *, get, +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventQueue::Events); + +BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS, + Properties::NON_EXPLICIT, + ____EventQueue__GUIEventAdapter_MouseYOrientation, + "", + ""); + I_Method1(void, setEvents, IN, osgGA::EventQueue::Events &, events, Properties::NON_VIRTUAL, - __T_P1__get, + __void__setEvents__Events_R1, + "Set events. ", + ""); + I_Method1(bool, takeEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __bool__takeEvents__Events_R1, + "Take the entire event queue leaving the EventQueue' event queue empty. ", + ""); + I_Method1(bool, copyEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__appendEvents__Events_R1, + "Add events to end of event queue. ", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__addEvent__GUIEventAdapter_P1, + "Add an event to the end of the event queue. ", + ""); + I_Method1(void, setUseFixedMouseInputRange, IN, bool, useFixedMouseInputRange, + Properties::NON_VIRTUAL, + __void__setUseFixedMouseInputRange__bool, + "Specify if mouse coordinates should be transformed into a pre defined input range, or whether they should be simply based on as local coordinates to the window that generated the mouse events. ", + ""); + I_Method0(bool, getUseFixedMouseInputRange, + Properties::NON_VIRTUAL, + __bool__getUseFixedMouseInputRange, + "Get whether the mouse coordinates should be transformed into a pre defined input range. ", + ""); + I_Method4(void, setMouseInputRange, IN, float, xMin, IN, float, yMin, IN, float, xMax, IN, float, yMax, + Properties::NON_VIRTUAL, + __void__setMouseInputRange__float__float__float__float, + "Set the mouse input range. ", + ""); + I_Method4(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__windowResize__int__int__int__int, + "Method for adapting window resize event, placing this event on the back of the event queue. ", + ""); + I_Method5(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, double, time, + Properties::NON_VIRTUAL, + __void__windowResize__int__int__int__int__double, + "Method for adapting window resize event, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method1(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, + Properties::NON_VIRTUAL, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion__double, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__mouseScroll2D__float__float, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseScroll2D, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseScroll2D__float__float__double, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method1(void, penPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__penPressure__float, + "Method for adapting pen pressure events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, penPressure, IN, float, pressure, IN, double, time, + Properties::NON_VIRTUAL, + __void__penPressure__float__double, + "Method for adapting pen pressure events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, + Properties::NON_VIRTUAL, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool, + "Method for adapting pen proximity events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, IN, double, time, + Properties::NON_VIRTUAL, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool__double, + "Method for adapting pen proximity events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, mouseWarped, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__mouseWarped__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, + Properties::NON_VIRTUAL, + __void__mouseMotion__float__float, + "Method for adapting mouse motion events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseMotion, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseMotion__float__float__double, + "Method for adapting mouse motion events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method3(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseButtonPress__float__float__unsigned_int__double, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", + "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, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseDoubleButtonPress__float__float__unsigned_int__double, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", + "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, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseButtonRelease__float__float__unsigned_int__double, + "Method for adapting mouse button release events, placing this event on the back of the event queue, with specified time. ", + "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); + I_Method1(void, keyPress, IN, int, key, + Properties::NON_VIRTUAL, + __void__keyPress__int, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); + I_Method2(void, keyPress, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, + __void__keyPress__int__double, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); + I_Method1(void, keyRelease, IN, int, key, + Properties::NON_VIRTUAL, + __void__keyRelease__int, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); + I_Method2(void, keyRelease, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, + __void__keyRelease__int__double, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); + I_Method0(void, closeWindow, + Properties::NON_VIRTUAL, + __void__closeWindow, + "Method for adapting close window events. ", + ""); + I_Method1(void, closeWindow, IN, double, time, + Properties::NON_VIRTUAL, + __void__closeWindow__double, + "Method for adapting close window event with specified event time. ", + ""); + I_Method0(void, quitApplication, + Properties::NON_VIRTUAL, + __void__quitApplication, + "Method for adapting application quit events. ", + ""); + I_Method1(void, quitApplication, IN, double, time, + Properties::NON_VIRTUAL, + __void__quitApplication__double, + "Method for adapting application quit events with specified event time. ", + ""); + I_Method1(void, frame, IN, double, time, + Properties::NON_VIRTUAL, + __void__frame__double, + "Method for adapting frame events. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, "", ""); - I_Method0(bool, valid, + I_Method0(osg::Timer_t, getStartTick, Properties::NON_VIRTUAL, - __bool__valid, + __osg_Timer_t__getStartTick, "", ""); - I_Method0(osgGA::GUIEventAdapter *, release, + I_Method0(double, getTime, Properties::NON_VIRTUAL, - __T_P1__release, + __double__getTime, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventAdapter > &, rp, + I_Method0(osgGA::GUIEventAdapter *, createEvent, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __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, + Properties::NON_VIRTUAL, + __GUIEventAdapter_P1__getCurrentEventState, "", ""); - I_SimpleProperty(osgGA::GUIEventAdapter *, , - __T_P1__get, + I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, + __C5_GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS, + Properties::NON_EXPLICIT, + ____EventQueue__GUIEventAdapter_MouseYOrientation, + "", + ""); + I_Method1(void, setEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __void__setEvents__Events_R1, + "Set events. ", + ""); + I_Method1(bool, takeEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __bool__takeEvents__Events_R1, + "Take the entire event queue leaving the EventQueue' event queue empty. ", + ""); + I_Method1(bool, copyEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__appendEvents__Events_R1, + "Add events to end of event queue. ", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__addEvent__GUIEventAdapter_P1, + "Add an event to the end of the event queue. ", + ""); + I_Method1(void, setUseFixedMouseInputRange, IN, bool, useFixedMouseInputRange, + Properties::NON_VIRTUAL, + __void__setUseFixedMouseInputRange__bool, + "Specify if mouse coordinates should be transformed into a pre defined input range, or whether they should be simply based on as local coordinates to the window that generated the mouse events. ", + ""); + I_Method0(bool, getUseFixedMouseInputRange, + Properties::NON_VIRTUAL, + __bool__getUseFixedMouseInputRange, + "Get whether the mouse coordinates should be transformed into a pre defined input range. ", + ""); + I_Method4(void, setMouseInputRange, IN, float, xMin, IN, float, yMin, IN, float, xMax, IN, float, yMax, + Properties::NON_VIRTUAL, + __void__setMouseInputRange__float__float__float__float, + "Set the mouse input range. ", + ""); + I_Method4(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__windowResize__int__int__int__int, + "Method for adapting window resize event, placing this event on the back of the event queue. ", + ""); + I_Method5(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, double, time, + Properties::NON_VIRTUAL, + __void__windowResize__int__int__int__int__double, + "Method for adapting window resize event, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method1(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, + Properties::NON_VIRTUAL, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseScroll__GUIEventAdapter_ScrollingMotion__double, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__mouseScroll2D__float__float, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseScroll2D, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseScroll2D__float__float__double, + "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", + ""); + I_Method1(void, penPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__penPressure__float, + "Method for adapting pen pressure events, placing this event on the back of the event queue. ", + ""); + I_Method2(void, penPressure, IN, float, pressure, IN, double, time, + Properties::NON_VIRTUAL, + __void__penPressure__float__double, + "Method for adapting pen pressure events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, + Properties::NON_VIRTUAL, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool, + "Method for adapting pen proximity events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, IN, double, time, + Properties::NON_VIRTUAL, + __void__penProximity__GUIEventAdapter_TabletPointerType__bool__double, + "Method for adapting pen proximity events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method2(void, mouseWarped, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__mouseWarped__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, + Properties::NON_VIRTUAL, + __void__mouseMotion__float__float, + "Method for adapting mouse motion events, placing this event on the back of the event queue. ", + ""); + I_Method3(void, mouseMotion, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseMotion__float__float__double, + "Method for adapting mouse motion events, placing this event on the back of the event queue, with specified time. ", + ""); + I_Method3(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseButtonPress__float__float__unsigned_int__double, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", + "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, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseDoubleButtonPress__float__float__unsigned_int__double, + "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", + "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, + Properties::NON_VIRTUAL, + __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_Method4(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, + __void__mouseButtonRelease__float__float__unsigned_int__double, + "Method for adapting mouse button release events, placing this event on the back of the event queue, with specified time. ", + "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); + I_Method1(void, keyPress, IN, int, key, + Properties::NON_VIRTUAL, + __void__keyPress__int, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); + I_Method2(void, keyPress, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, + __void__keyPress__int__double, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); + I_Method1(void, keyRelease, IN, int, key, + Properties::NON_VIRTUAL, + __void__keyRelease__int, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); + I_Method2(void, keyRelease, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, + __void__keyRelease__int__double, + "Method for adapting keyboard press events. ", + "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); + I_Method0(void, closeWindow, + Properties::NON_VIRTUAL, + __void__closeWindow, + "Method for adapting close window events. ", + ""); + I_Method1(void, closeWindow, IN, double, time, + Properties::NON_VIRTUAL, + __void__closeWindow__double, + "Method for adapting close window event with specified event time. ", + ""); + I_Method0(void, quitApplication, + Properties::NON_VIRTUAL, + __void__quitApplication, + "Method for adapting application quit events. ", + ""); + I_Method1(void, quitApplication, IN, double, time, + Properties::NON_VIRTUAL, + __void__quitApplication__double, + "Method for adapting application quit events with specified event time. ", + ""); + I_Method1(void, frame, IN, double, time, + Properties::NON_VIRTUAL, + __void__frame__double, + "Method for adapting frame events. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEvent, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, + __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); + I_SimpleProperty(bool, UseFixedMouseInputRange, + __bool__getUseFixedMouseInputRange, + __void__setUseFixedMouseInputRange__bool); 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 117211d40..c05702cba 100644 --- a/src/osgWrappers/osgGA/EventVisitor.cpp +++ b/src/osgWrappers/osgGA/EventVisitor.cpp @@ -10,17 +10,17 @@ #include #include -#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include #include #include #include -#include +#include #include #include #include @@ -36,6 +36,7 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventVisitor::EventList); BEGIN_OBJECT_REFLECTOR(osgGA::EventVisitor) + I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); I_Constructor0(____EventVisitor, "", @@ -93,8 +94,348 @@ BEGIN_OBJECT_REFLECTOR(osgGA::EventVisitor) I_Method0(void, reset, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Constructor0(____EventVisitor, + "", + ""); + I_Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter, + Properties::NON_VIRTUAL, + __void__setActionAdapter__osgGA_GUIActionAdapter_P1, + "", + ""); + I_Method0(osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, + __osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method0(const osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, + __C5_osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__addEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__removeEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, setEventHandled, IN, bool, handled, + Properties::NON_VIRTUAL, + __void__setEventHandled__bool, + "", + ""); + I_Method0(bool, getEventHandled, + Properties::NON_VIRTUAL, + __bool__getEventHandled, + "", + ""); + I_Method1(void, setEvents, IN, const osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __void__setEvents__C5_EventQueue_Events_R1, + "", + ""); + I_Method0(osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, + __EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(const osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, + __C5_EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventVisitor::EventList); + +BEGIN_OBJECT_REFLECTOR(osgGA::EventVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____EventVisitor, + "", + ""); + I_Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter, + Properties::NON_VIRTUAL, + __void__setActionAdapter__osgGA_GUIActionAdapter_P1, + "", + ""); + I_Method0(osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, + __osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method0(const osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, + __C5_osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__addEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__removeEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, setEventHandled, IN, bool, handled, + Properties::NON_VIRTUAL, + __void__setEventHandled__bool, + "", + ""); + I_Method0(bool, getEventHandled, + Properties::NON_VIRTUAL, + __bool__getEventHandled, + "", + ""); + I_Method1(void, setEvents, IN, const osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __void__setEvents__C5_EventQueue_Events_R1, + "", + ""); + I_Method0(osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, + __EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(const osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, + __C5_EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Constructor0(____EventVisitor, + "", + ""); + I_Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter, + Properties::NON_VIRTUAL, + __void__setActionAdapter__osgGA_GUIActionAdapter_P1, + "", + ""); + I_Method0(osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, + __osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method0(const osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, + __C5_osgGA_GUIActionAdapter_P1__getActionAdapter, + "", + ""); + I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__addEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, + __void__removeEvent__GUIEventAdapter_P1, + "", + ""); + I_Method1(void, setEventHandled, IN, bool, handled, + Properties::NON_VIRTUAL, + __void__setEventHandled__bool, + "", + ""); + I_Method0(bool, getEventHandled, + Properties::NON_VIRTUAL, + __bool__getEventHandled, + "", + ""); + I_Method1(void, setEvents, IN, const osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, + __void__setEvents__C5_EventQueue_Events_R1, + "", + ""); + I_Method0(osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, + __EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(const osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, + __C5_EventQueue_Events_R1__getEvents, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); I_Method1(void, apply, IN, osg::Node &, node, Properties::VIRTUAL, __void__apply__osg_Node_R1, diff --git a/src/osgWrappers/osgGA/FlightManipulator.cpp b/src/osgWrappers/osgGA/FlightManipulator.cpp index 768dc27d4..b18f1af05 100644 --- a/src/osgWrappers/osgGA/FlightManipulator.cpp +++ b/src/osgWrappers/osgGA/FlightManipulator.cpp @@ -10,9 +10,10 @@ #include #include +#include +#include #include -#include -#include +#include #include #include #include @@ -31,6 +32,7 @@ BEGIN_ENUM_REFLECTOR(osgGA::FlightManipulator::YawControlMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____FlightManipulator, "", @@ -38,8 +40,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, @@ -63,32 +65,363 @@ BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) I_Method1(void, setNode, IN, osg::Node *, x, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_osg_Node_P1__getNode, - "Return const node if attached. ", + "", ""); I_Method0(osg::Node *, getNode, Properties::VIRTUAL, __osg_Node_P1__getNode, - "Return node if attached. ", + "", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, - "Handle events, return true if handled, false otherwise. ", + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm, + Properties::NON_VIRTUAL, + __void__setYawControlMode__YawControlMode, + "Configure the Yaw control for the flight model. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, + __double__getModelScale, + "", + ""); + I_Method1(void, setAcceleration, IN, double, in_acc, + Properties::NON_VIRTUAL, + __void__setAcceleration__double, + "", + ""); + I_Method0(double, getAcceleration, + Properties::NON_VIRTUAL, + __double__getAcceleration, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, + __double__getVelocity, + "", + ""); + I_Constructor0(____FlightManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm, + Properties::NON_VIRTUAL, + __void__setYawControlMode__YawControlMode, + "Configure the Yaw control for the flight model. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, + __double__getModelScale, + "", + ""); + I_Method1(void, setAcceleration, IN, double, in_acc, + Properties::NON_VIRTUAL, + __void__setAcceleration__double, + "", + ""); + I_Method0(double, getAcceleration, + Properties::NON_VIRTUAL, + __double__getAcceleration, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osgGA::FlightManipulator::YawControlMode) + I_EnumLabel(osgGA::FlightManipulator::YAW_AUTOMATICALLY_WHEN_BANKED); + I_EnumLabel(osgGA::FlightManipulator::NO_AUTOMATIC_YAW); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____FlightManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm, + Properties::NON_VIRTUAL, + __void__setYawControlMode__YawControlMode, + "Configure the Yaw control for the flight model. ", + ""); + I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, + __void__setModelScale__double, + "", + ""); + I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, + __double__getModelScale, + "", + ""); + I_Method1(void, setAcceleration, IN, double, in_acc, + Properties::NON_VIRTUAL, + __void__setAcceleration__double, + "", + ""); + I_Method0(double, getAcceleration, + Properties::NON_VIRTUAL, + __double__getAcceleration, + "", + ""); + I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, + __void__setVelocity__double, + "", + ""); + I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, + __double__getVelocity, + "", + ""); + I_Constructor0(____FlightManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgGA/GNUmakefile b/src/osgWrappers/osgGA/GNUmakefile index 973bd6c2e..c91324f23 100644 --- a/src/osgWrappers/osgGA/GNUmakefile +++ b/src/osgWrappers/osgGA/GNUmakefile @@ -14,8 +14,6 @@ CXXFILES =\ MatrixManipulator.cpp\ NodeTrackerManipulator.cpp\ StateSetManipulator.cpp\ - TerrainManipulator.cpp\ - TrackballManipulator.cpp\ UFOManipulator.cpp\ LIBS += -losgGA -losg -losgIntrospection -losgUtil $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgGA/GUIActionAdapter.cpp b/src/osgWrappers/osgGA/GUIActionAdapter.cpp index dbb1ba2b3..d917b6bb1 100644 --- a/src/osgWrappers/osgGA/GUIActionAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIActionAdapter.cpp @@ -39,5 +39,56 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIActionAdapter) __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_Method0(void, requestRedraw, + Properties::PURE_VIRTUAL, + __void__requestRedraw, + "requestRedraw() requests a single redraw. ", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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 + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIActionAdapter) + I_Constructor0(____GUIActionAdapter, + "", + ""); + I_Method0(void, requestRedraw, + Properties::PURE_VIRTUAL, + __void__requestRedraw, + "requestRedraw() requests a single redraw. ", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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_Method0(void, requestRedraw, + Properties::PURE_VIRTUAL, + __void__requestRedraw, + "requestRedraw() requests a single redraw. ", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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 30b2046de..0b9c33a84 100644 --- a/src/osgWrappers/osgGA/GUIEventAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIEventAdapter.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -210,6 +211,929 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____GUIEventAdapter, + "", + ""); + I_Constructor1(IN, const osgGA::GUIEventAdapter &, rhs, + Properties::NON_EXPLICIT, + ____GUIEventAdapter__C5_GUIEventAdapter_R1, + "", + ""); + I_Method1(void, setHandled, IN, bool, handled, + Properties::NON_VIRTUAL, + __void__setHandled__bool, + "Set whether this event has been handled by an event handler or not. ", + ""); + I_Method0(bool, getHandled, + Properties::NON_VIRTUAL, + __bool__getHandled, + "Get whether this event has been handled by an event handler or not. ", + ""); + I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type, + Properties::NON_VIRTUAL, + __void__setEventType__EventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, + Properties::VIRTUAL, + __EventType__getEventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method1(void, setTime, IN, double, time, + Properties::NON_VIRTUAL, + __void__setTime__double, + "set time in seconds of event. ", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "get time in seconds of event. ", + ""); + I_Method0(double, time, + Properties::NON_VIRTUAL, + __double__time, + "deprecated function for getting time of event. ", + ""); + I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, bool, updateMouseRange, true, + Properties::NON_VIRTUAL, + __void__setWindowRectangle__int__int__int__int__bool, + "set window rectangle. ", + ""); + I_Method0(int, getWindowX, + Properties::NON_VIRTUAL, + __int__getWindowX, + "get window x origin. ", + ""); + I_Method0(int, getWindowY, + Properties::NON_VIRTUAL, + __int__getWindowY, + "get window y origin. ", + ""); + I_Method0(int, getWindowWidth, + Properties::NON_VIRTUAL, + __int__getWindowWidth, + "get window width. ", + ""); + I_Method0(int, getWindowHeight, + Properties::NON_VIRTUAL, + __int__getWindowHeight, + "get window height. ", + ""); + I_Method1(void, setKey, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKey__int, + "set key pressed. ", + ""); + I_Method0(int, getKey, + Properties::VIRTUAL, + __int__getKey, + "get key pressed, return -1 if inappropriate for this GUIEventAdapter. ", + ""); + I_Method1(void, setButton, IN, int, button, + Properties::NON_VIRTUAL, + __void__setButton__int, + "set button pressed/released. ", + ""); + I_Method0(int, getButton, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInputRange__float__float__float__float, + "set mouse input range. ", + ""); + I_Method0(float, getXmin, + Properties::NON_VIRTUAL, + __float__getXmin, + "get mouse minimum x. ", + ""); + I_Method0(float, getXmax, + Properties::NON_VIRTUAL, + __float__getXmax, + "get mouse maximum x. ", + ""); + I_Method0(float, getYmin, + Properties::NON_VIRTUAL, + __float__getYmin, + "get mmouse minimum y. ", + ""); + I_Method0(float, getYmax, + Properties::NON_VIRTUAL, + __float__getYmax, + "get mouse maYimum y. ", + ""); + I_Method1(void, setX, IN, float, x, + Properties::NON_VIRTUAL, + __void__setX__float, + "set current mouse x position. ", + ""); + I_Method0(float, getX, + Properties::NON_VIRTUAL, + __float__getX, + "get current mouse x position. ", + ""); + I_Method1(void, setY, IN, float, y, + Properties::NON_VIRTUAL, + __void__setY__float, + "set current mouse y position. ", + ""); + I_Method0(float, getY, + Properties::NON_VIRTUAL, + __float__getY, + "get current mouse y position. ", + ""); + I_Method1(void, setButtonMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setButtonMask__unsigned_int, + "set current mouse button state ", + ""); + I_Method0(unsigned int, getButtonMask, + Properties::NON_VIRTUAL, + __unsigned_int__getButtonMask, + "get current mouse button state ", + ""); + I_Method1(void, setModKeyMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setModKeyMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModKeyMask, + Properties::NON_VIRTUAL, + __unsigned_int__getModKeyMask, + "", + ""); + I_Method0(float, getPenPressure, + Properties::NON_VIRTUAL, + __float__getPenPressure, + "get the pressure, from a tablet input device (range 0 - 1) ", + ""); + I_Method1(void, setPenPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__setPenPressure__float, + "sets the pressure from a tablet ", + ""); + I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, + Properties::NON_VIRTUAL, + __TabletPointerType__getTabletPointerType, + "get the current used tablet pointer type ", + ""); + I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, + Properties::NON_VIRTUAL, + __void__setTabletPointerType__TabletPointerType, + "set the current used tablet pointer type ", + ""); + I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, + Properties::NON_VIRTUAL, + __void__setScrollingMotion__ScrollingMotion, + "", + ""); + I_Method0(float, getScrollingDeltaX, + Properties::NON_VIRTUAL, + __float__getScrollingDeltaX, + "get the scrolling x-delta ", + ""); + I_Method0(float, getScrollingDeltaY, + Properties::NON_VIRTUAL, + __float__getScrollingDeltaY, + "get the scrolling y-delta ", + ""); + I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ScrollingMotion__getScrollingMotion, + "", + ""); + I_Method0(float, getXnormalized, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMouseYOrientation__MouseYOrientation, + "", + ""); + I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, + Properties::NON_VIRTUAL, + __MouseYOrientation__getMouseYOrientation, + "", + ""); + I_Constructor0(____GUIEventAdapter, + "", + ""); + I_Constructor1(IN, const osgGA::GUIEventAdapter &, rhs, + Properties::NON_EXPLICIT, + ____GUIEventAdapter__C5_GUIEventAdapter_R1, + "", + ""); + I_Method1(void, setHandled, IN, bool, handled, + Properties::NON_VIRTUAL, + __void__setHandled__bool, + "Set whether this event has been handled by an event handler or not. ", + ""); + I_Method0(bool, getHandled, + Properties::NON_VIRTUAL, + __bool__getHandled, + "Get whether this event has been handled by an event handler or not. ", + ""); + I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type, + Properties::NON_VIRTUAL, + __void__setEventType__EventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, + Properties::VIRTUAL, + __EventType__getEventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method1(void, setTime, IN, double, time, + Properties::NON_VIRTUAL, + __void__setTime__double, + "set time in seconds of event. ", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "get time in seconds of event. ", + ""); + I_Method0(double, time, + Properties::NON_VIRTUAL, + __double__time, + "deprecated function for getting time of event. ", + ""); + I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, bool, updateMouseRange, true, + Properties::NON_VIRTUAL, + __void__setWindowRectangle__int__int__int__int__bool, + "set window rectangle. ", + ""); + I_Method0(int, getWindowX, + Properties::NON_VIRTUAL, + __int__getWindowX, + "get window x origin. ", + ""); + I_Method0(int, getWindowY, + Properties::NON_VIRTUAL, + __int__getWindowY, + "get window y origin. ", + ""); + I_Method0(int, getWindowWidth, + Properties::NON_VIRTUAL, + __int__getWindowWidth, + "get window width. ", + ""); + I_Method0(int, getWindowHeight, + Properties::NON_VIRTUAL, + __int__getWindowHeight, + "get window height. ", + ""); + I_Method1(void, setKey, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKey__int, + "set key pressed. ", + ""); + I_Method0(int, getKey, + Properties::VIRTUAL, + __int__getKey, + "get key pressed, return -1 if inappropriate for this GUIEventAdapter. ", + ""); + I_Method1(void, setButton, IN, int, button, + Properties::NON_VIRTUAL, + __void__setButton__int, + "set button pressed/released. ", + ""); + I_Method0(int, getButton, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInputRange__float__float__float__float, + "set mouse input range. ", + ""); + I_Method0(float, getXmin, + Properties::NON_VIRTUAL, + __float__getXmin, + "get mouse minimum x. ", + ""); + I_Method0(float, getXmax, + Properties::NON_VIRTUAL, + __float__getXmax, + "get mouse maximum x. ", + ""); + I_Method0(float, getYmin, + Properties::NON_VIRTUAL, + __float__getYmin, + "get mmouse minimum y. ", + ""); + I_Method0(float, getYmax, + Properties::NON_VIRTUAL, + __float__getYmax, + "get mouse maYimum y. ", + ""); + I_Method1(void, setX, IN, float, x, + Properties::NON_VIRTUAL, + __void__setX__float, + "set current mouse x position. ", + ""); + I_Method0(float, getX, + Properties::NON_VIRTUAL, + __float__getX, + "get current mouse x position. ", + ""); + I_Method1(void, setY, IN, float, y, + Properties::NON_VIRTUAL, + __void__setY__float, + "set current mouse y position. ", + ""); + I_Method0(float, getY, + Properties::NON_VIRTUAL, + __float__getY, + "get current mouse y position. ", + ""); + I_Method1(void, setButtonMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setButtonMask__unsigned_int, + "set current mouse button state ", + ""); + I_Method0(unsigned int, getButtonMask, + Properties::NON_VIRTUAL, + __unsigned_int__getButtonMask, + "get current mouse button state ", + ""); + I_Method1(void, setModKeyMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setModKeyMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModKeyMask, + Properties::NON_VIRTUAL, + __unsigned_int__getModKeyMask, + "", + ""); + I_Method0(float, getPenPressure, + Properties::NON_VIRTUAL, + __float__getPenPressure, + "get the pressure, from a tablet input device (range 0 - 1) ", + ""); + I_Method1(void, setPenPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__setPenPressure__float, + "sets the pressure from a tablet ", + ""); + I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, + Properties::NON_VIRTUAL, + __TabletPointerType__getTabletPointerType, + "get the current used tablet pointer type ", + ""); + I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, + Properties::NON_VIRTUAL, + __void__setTabletPointerType__TabletPointerType, + "set the current used tablet pointer type ", + ""); + I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, + Properties::NON_VIRTUAL, + __void__setScrollingMotion__ScrollingMotion, + "", + ""); + I_Method0(float, getScrollingDeltaX, + Properties::NON_VIRTUAL, + __float__getScrollingDeltaX, + "get the scrolling x-delta ", + ""); + I_Method0(float, getScrollingDeltaY, + Properties::NON_VIRTUAL, + __float__getScrollingDeltaY, + "get the scrolling y-delta ", + ""); + I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ScrollingMotion__getScrollingMotion, + "", + ""); + I_Method0(float, getXnormalized, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMouseYOrientation__MouseYOrientation, + "", + ""); + I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, + Properties::NON_VIRTUAL, + __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(bool, Handled, + __bool__getHandled, + __void__setHandled__bool); + 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(int, WindowHeight, + __int__getWindowHeight, + 0); + I_SimpleProperty(int, WindowWidth, + __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 + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseButtonMask) + I_EnumLabel(osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON); + I_EnumLabel(osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON); + I_EnumLabel(osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::EventType) + I_EnumLabel(osgGA::GUIEventAdapter::NONE); + I_EnumLabel(osgGA::GUIEventAdapter::PUSH); + I_EnumLabel(osgGA::GUIEventAdapter::RELEASE); + I_EnumLabel(osgGA::GUIEventAdapter::DOUBLECLICK); + I_EnumLabel(osgGA::GUIEventAdapter::DRAG); + I_EnumLabel(osgGA::GUIEventAdapter::MOVE); + I_EnumLabel(osgGA::GUIEventAdapter::KEYDOWN); + I_EnumLabel(osgGA::GUIEventAdapter::KEYUP); + I_EnumLabel(osgGA::GUIEventAdapter::FRAME); + I_EnumLabel(osgGA::GUIEventAdapter::RESIZE); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_PRESSURE); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_PROXIMITY_ENTER); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_PROXIMITY_LEAVE); + I_EnumLabel(osgGA::GUIEventAdapter::CLOSE_WINDOW); + I_EnumLabel(osgGA::GUIEventAdapter::QUIT_APPLICATION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::KeySymbol) + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Space); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_BackSpace); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Tab); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Linefeed); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Clear); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Return); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Pause); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Scroll_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Sys_Req); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Escape); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Delete); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Home); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Left); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Right); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Prior); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Next); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_End); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Begin); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Select); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Print); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Execute); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Insert); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Undo); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Redo); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Menu); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Find); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Cancel); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Help); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Break); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Mode_switch); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Script_switch); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Num_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Space); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Tab); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Enter); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F1); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F2); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F3); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F4); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Home); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Left); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Right); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Prior); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Next); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_End); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Begin); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Insert); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Delete); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Equal); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Multiply); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Add); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Separator); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Subtract); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Decimal); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Divide); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_0); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_1); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_2); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_3); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_4); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_5); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_6); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_7); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_8); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_9); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F1); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F2); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F3); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F4); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F5); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F6); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F7); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F8); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F9); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F10); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F11); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F12); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F13); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F14); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F15); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F16); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F17); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F18); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F19); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F20); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F21); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F22); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F23); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F24); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F25); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F26); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F27); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F28); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F29); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F30); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F31); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F32); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F33); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F34); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F35); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Control_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Control_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Caps_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Super_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Super_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_R); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ModKeyMask) + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_ALT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_META); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_META); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_NUM_LOCK); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_CTRL); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_SHIFT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_ALT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_META); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseYOrientation) + I_EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS); + I_EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ScrollingMotion) + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_NONE); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_LEFT); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_RIGHT); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_UP); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_DOWN); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_2D); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::TabletPointerType) + I_EnumLabel(osgGA::GUIEventAdapter::UNKNOWN); + I_EnumLabel(osgGA::GUIEventAdapter::PEN); + I_EnumLabel(osgGA::GUIEventAdapter::PUCK); + I_EnumLabel(osgGA::GUIEventAdapter::ERASER); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____GUIEventAdapter, + "", + ""); + I_Constructor1(IN, const osgGA::GUIEventAdapter &, rhs, + Properties::NON_EXPLICIT, + ____GUIEventAdapter__C5_GUIEventAdapter_R1, + "", + ""); + I_Method1(void, setHandled, IN, bool, handled, + Properties::NON_VIRTUAL, + __void__setHandled__bool, + "Set whether this event has been handled by an event handler or not. ", + ""); + I_Method0(bool, getHandled, + Properties::NON_VIRTUAL, + __bool__getHandled, + "Get whether this event has been handled by an event handler or not. ", + ""); + I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type, + Properties::NON_VIRTUAL, + __void__setEventType__EventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, + Properties::VIRTUAL, + __EventType__getEventType, + "Get the Type of the GUI GUIEventAdapter. ", + ""); + I_Method1(void, setTime, IN, double, time, + Properties::NON_VIRTUAL, + __void__setTime__double, + "set time in seconds of event. ", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "get time in seconds of event. ", + ""); + I_Method0(double, time, + Properties::NON_VIRTUAL, + __double__time, + "deprecated function for getting time of event. ", + ""); + I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, bool, updateMouseRange, true, + Properties::NON_VIRTUAL, + __void__setWindowRectangle__int__int__int__int__bool, + "set window rectangle. ", + ""); + I_Method0(int, getWindowX, + Properties::NON_VIRTUAL, + __int__getWindowX, + "get window x origin. ", + ""); + I_Method0(int, getWindowY, + Properties::NON_VIRTUAL, + __int__getWindowY, + "get window y origin. ", + ""); + I_Method0(int, getWindowWidth, + Properties::NON_VIRTUAL, + __int__getWindowWidth, + "get window width. ", + ""); + I_Method0(int, getWindowHeight, + Properties::NON_VIRTUAL, + __int__getWindowHeight, + "get window height. ", + ""); + I_Method1(void, setKey, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKey__int, + "set key pressed. ", + ""); + I_Method0(int, getKey, + Properties::VIRTUAL, + __int__getKey, + "get key pressed, return -1 if inappropriate for this GUIEventAdapter. ", + ""); + I_Method1(void, setButton, IN, int, button, + Properties::NON_VIRTUAL, + __void__setButton__int, + "set button pressed/released. ", + ""); + I_Method0(int, getButton, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInputRange__float__float__float__float, + "set mouse input range. ", + ""); + I_Method0(float, getXmin, + Properties::NON_VIRTUAL, + __float__getXmin, + "get mouse minimum x. ", + ""); + I_Method0(float, getXmax, + Properties::NON_VIRTUAL, + __float__getXmax, + "get mouse maximum x. ", + ""); + I_Method0(float, getYmin, + Properties::NON_VIRTUAL, + __float__getYmin, + "get mmouse minimum y. ", + ""); + I_Method0(float, getYmax, + Properties::NON_VIRTUAL, + __float__getYmax, + "get mouse maYimum y. ", + ""); + I_Method1(void, setX, IN, float, x, + Properties::NON_VIRTUAL, + __void__setX__float, + "set current mouse x position. ", + ""); + I_Method0(float, getX, + Properties::NON_VIRTUAL, + __float__getX, + "get current mouse x position. ", + ""); + I_Method1(void, setY, IN, float, y, + Properties::NON_VIRTUAL, + __void__setY__float, + "set current mouse y position. ", + ""); + I_Method0(float, getY, + Properties::NON_VIRTUAL, + __float__getY, + "get current mouse y position. ", + ""); + I_Method1(void, setButtonMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setButtonMask__unsigned_int, + "set current mouse button state ", + ""); + I_Method0(unsigned int, getButtonMask, + Properties::NON_VIRTUAL, + __unsigned_int__getButtonMask, + "get current mouse button state ", + ""); + I_Method1(void, setModKeyMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setModKeyMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModKeyMask, + Properties::NON_VIRTUAL, + __unsigned_int__getModKeyMask, + "", + ""); + I_Method0(float, getPenPressure, + Properties::NON_VIRTUAL, + __float__getPenPressure, + "get the pressure, from a tablet input device (range 0 - 1) ", + ""); + I_Method1(void, setPenPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__setPenPressure__float, + "sets the pressure from a tablet ", + ""); + I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, + Properties::NON_VIRTUAL, + __TabletPointerType__getTabletPointerType, + "get the current used tablet pointer type ", + ""); + I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, + Properties::NON_VIRTUAL, + __void__setTabletPointerType__TabletPointerType, + "set the current used tablet pointer type ", + ""); + I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, + Properties::NON_VIRTUAL, + __void__setScrollingMotion__ScrollingMotion, + "", + ""); + I_Method0(float, getScrollingDeltaX, + Properties::NON_VIRTUAL, + __float__getScrollingDeltaX, + "get the scrolling x-delta ", + ""); + I_Method0(float, getScrollingDeltaY, + Properties::NON_VIRTUAL, + __float__getScrollingDeltaY, + "get the scrolling y-delta ", + ""); + I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __ScrollingMotion__getScrollingMotion, + "", + ""); + I_Method0(float, getXnormalized, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMouseYOrientation__MouseYOrientation, + "", + ""); + I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, + Properties::NON_VIRTUAL, + __MouseYOrientation__getMouseYOrientation, + "", + ""); I_Constructor0(____GUIEventAdapter, "", ""); diff --git a/src/osgWrappers/osgGA/GUIEventHandler.cpp b/src/osgWrappers/osgGA/GUIEventHandler.cpp index 11fcf8762..a1ed79ba3 100644 --- a/src/osgWrappers/osgGA/GUIEventHandler.cpp +++ b/src/osgWrappers/osgGA/GUIEventHandler.cpp @@ -10,12 +10,12 @@ #include #include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include #include #include #include @@ -29,6 +29,8 @@ #endif BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) + I_BaseType(osg::NodeCallback); + I_BaseType(osg::Drawable::EventCallback); I_BaseType(osg::NodeCallback); I_BaseType(osg::Drawable::EventCallback); I_Constructor0(____GUIEventHandler, @@ -41,13 +43,13 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -56,13 +58,176 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) + I_BaseType(osg::NodeCallback); + I_BaseType(osg::Drawable::EventCallback); + I_BaseType(osg::NodeCallback); + I_BaseType(osg::Drawable::EventCallback); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, Properties::VIRTUAL, __void__event__osg_NodeVisitor_P1__osg_Drawable_P1, @@ -94,5 +259,26 @@ BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor) __void__visit__GUIEventHandler_R1, "", ""); + I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x, + Properties::NON_VIRTUAL, + __void__visit__GUIEventHandler_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor) + I_Constructor0(____GUIEventHandlerVisitor, + "", + ""); + I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x, + Properties::NON_VIRTUAL, + __void__visit__GUIEventHandler_R1, + "", + ""); + I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x, + Properties::NON_VIRTUAL, + __void__visit__GUIEventHandler_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp index b36f68a6c..1643a41b0 100644 --- a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp @@ -10,15 +10,16 @@ #include #include +#include +#include #include -#include -#include #include +#include #include #include #include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -33,6 +34,7 @@ TYPE_NAME_ALIAS(std::pair< std::string COMMA osg::ref_ptr< osgGA::MatrixManipul TYPE_NAME_ALIAS(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >, osgGA::KeySwitchMatrixManipulator::KeyManipMap); BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____KeySwitchMatrixManipulator, "", @@ -40,8 +42,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__addMatrixManipulator__int__std_string__MatrixManipulator_P1, @@ -145,47 +147,202 @@ BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) I_Method1(void, setNode, IN, osg::Node *, n, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_osg_Node_P1__getNode, - "Return const node if attached. ", + "", ""); I_Method0(osg::Node *, getNode, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__setAutoComputeHomePosition__bool, - "Set whether the automatic compute of the home position is enabled. ", + "", ""); I_Method0(void, computeHomePosition, Properties::VIRTUAL, __void__computeHomePosition, - "Compute the home position. ", + "", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, - "Handle events, return true if handled, false otherwise. ", + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumMatrixManipulators, + "", + ""); + I_Method1(void, selectMatrixManipulator, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __void__selectMatrixManipulator__unsigned_int, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, + __KeyManipMap_R1__getKeyManipMap, + "Get the complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, + __C5_KeyManipMap_R1__getKeyManipMap, + "Get the const complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the current active manipulators. ", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the const current active manipulators. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get manipulator assigned to a specified index. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get const manipulator assigned to a specified index. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get manipulator assigned to a specified key. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get const manipulator assigned to a specified key. ", + ""); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, n, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + Properties::VIRTUAL, + __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, + "", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, + __void__setAutoComputeHomePosition__bool, + "", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, Properties::VIRTUAL, @@ -230,46 +387,361 @@ BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) __void__setNode__osg_Node_P1); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >) - I_Constructor0(____ref_ptr, +TYPE_NAME_ALIAS(std::pair< std::string COMMA osg::ref_ptr< osgGA::MatrixManipulator > >, osgGA::KeySwitchMatrixManipulator::NamedManipulator); + +TYPE_NAME_ALIAS(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >, osgGA::KeySwitchMatrixManipulator::KeyManipMap); + +BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____KeySwitchMatrixManipulator, "", ""); - I_Constructor1(IN, osgGA::MatrixManipulator *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgGA::MatrixManipulator *, get, - Properties::NON_VIRTUAL, - __T_P1__get, + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, "", ""); - I_Method0(bool, valid, + I_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm, Properties::NON_VIRTUAL, - __bool__valid, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumMatrixManipulators, "", ""); - I_Method0(osgGA::MatrixManipulator *, release, + I_Method1(void, selectMatrixManipulator, IN, unsigned int, num, Properties::NON_VIRTUAL, - __T_P1__release, + __void__selectMatrixManipulator__unsigned_int, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgGA::MatrixManipulator > &, rp, + I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __KeyManipMap_R1__getKeyManipMap, + "Get the complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, + __C5_KeyManipMap_R1__getKeyManipMap, + "Get the const complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the current active manipulators. ", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the const current active manipulators. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get manipulator assigned to a specified index. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get const manipulator assigned to a specified index. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get manipulator assigned to a specified key. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get const manipulator assigned to a specified key. ", + ""); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, n, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, "", ""); - I_SimpleProperty(osgGA::MatrixManipulator *, , - __T_P1__get, + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + Properties::VIRTUAL, + __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, + "", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, + __void__setAutoComputeHomePosition__bool, + "", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumMatrixManipulators, + "", + ""); + I_Method1(void, selectMatrixManipulator, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __void__selectMatrixManipulator__unsigned_int, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, + __KeyManipMap_R1__getKeyManipMap, + "Get the complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, + __C5_KeyManipMap_R1__getKeyManipMap, + "Get the const complete list of manipulators attached to this keyswitch manipulator. ", + ""); + I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the current active manipulators. ", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getCurrentMatrixManipulator, + "Get the const current active manipulators. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get manipulator assigned to a specified index. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, + "Get const manipulator assigned to a specified index. ", + ""); + I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get manipulator assigned to a specified key. ", + ""); + I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, + __C5_MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, + "Get const manipulator assigned to a specified key. ", + ""); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, n, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "", + ""); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "", + ""); + I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + Properties::VIRTUAL, + __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, + "", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, + __void__setAutoComputeHomePosition__bool, + "", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __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 -STD_MAP_REFLECTOR(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >); - -STD_PAIR_REFLECTOR(std::pair< std::string COMMA osg::ref_ptr< osgGA::MatrixManipulator > >); - diff --git a/src/osgWrappers/osgGA/MatrixManipulator.cpp b/src/osgWrappers/osgGA/MatrixManipulator.cpp index 8bd0af3a1..338c9d3dc 100644 --- a/src/osgWrappers/osgGA/MatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/MatrixManipulator.cpp @@ -10,14 +10,14 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -28,12 +28,501 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator) + I_BaseType(osgGA::GUIEventHandler); I_BaseType(osgGA::GUIEventHandler); I_Method0(const char *, className, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMinimumDistance, + "get the minimum distance (as ratio) the eye point can be zoomed in ", + ""); + I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "get the coordinate frame. ", + ""); + I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getSideVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getFrontVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getUpVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::PURE_VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "Get the mnaully set home position. ", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, + __void__setAutoComputeHomePosition__bool, + "Set whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(bool, getAutoComputeHomePosition, + Properties::NON_VIRTUAL, + __bool__getAutoComputeHomePosition, + "Get whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMinimumDistance, + "get the minimum distance (as ratio) the eye point can be zoomed in ", + ""); + I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "get the coordinate frame. ", + ""); + I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getSideVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getFrontVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getUpVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::PURE_VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "Get the mnaully set home position. ", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, + __void__setAutoComputeHomePosition__bool, + "Set whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(bool, getAutoComputeHomePosition, + Properties::NON_VIRTUAL, + __bool__getAutoComputeHomePosition, + "Get whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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) + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osgGA::GUIEventHandler); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMinimumDistance, + "get the minimum distance (as ratio) the eye point can be zoomed in ", + ""); + I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "get the coordinate frame. ", + ""); + I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getSideVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getFrontVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, + __osg_Vec3d__getUpVector__C5_osg_CoordinateFrame_R1, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::PURE_VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return const node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "Get the mnaully set home position. ", + ""); + I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, + __void__setAutoComputeHomePosition__bool, + "Set whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(bool, getAutoComputeHomePosition, + Properties::NON_VIRTUAL, + __bool__getAutoComputeHomePosition, + "Get whether the automatic compute of the home position is enabled. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setMinimumDistance, IN, float, minimumDistance, Properties::VIRTUAL, __void__setMinimumDistance__float, @@ -215,6 +704,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____CoordinateFrameCallback, "", @@ -224,5 +714,28 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallbac __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, "", ""); + I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::PURE_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____CoordinateFrameCallback, + "", + ""); + I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::PURE_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::PURE_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp index b7050c8c7..66efacc97 100644 --- a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp +++ b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp @@ -10,13 +10,14 @@ #include #include +#include +#include #include -#include -#include +#include #include #include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -40,6 +41,7 @@ BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::RotationMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____NodeTrackerManipulator, "", @@ -47,8 +49,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setTrackNodePath__C5_osg_NodePath_R1, @@ -147,7 +149,442 @@ BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) I_Method0(void, computeHomePosition, Properties::VIRTUAL, __void__computeHomePosition, - "Compute the home position. ", + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Constructor0(____NodeTrackerManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osgGA::NodeTrackerManipulator::ObserveredNodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_ObserveredNodePath_R1, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::ObserveredNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, + __ObserveredNodePath_R1__getTrackNodePath, + "", + ""); + I_Method1(void, setTrackNode, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setTrackNode__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, + __osg_Node_P1__getTrackNode, + "", + ""); + I_Method0(const osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getTrackNode, + "", + ""); + I_Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode, + Properties::NON_VIRTUAL, + __void__setTrackerMode__TrackerMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerMode, + Properties::NON_VIRTUAL, + __TrackerMode__getTrackerMode, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osgGA::NodeTrackerManipulator::ObserveredNodePath); + +BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::TrackerMode) + I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER); + I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_AZIM); + I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_ROTATION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::RotationMode) + I_EnumLabel(osgGA::NodeTrackerManipulator::TRACKBALL); + I_EnumLabel(osgGA::NodeTrackerManipulator::ELEVATION_AZIM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____NodeTrackerManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osgGA::NodeTrackerManipulator::ObserveredNodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_ObserveredNodePath_R1, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::ObserveredNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, + __ObserveredNodePath_R1__getTrackNodePath, + "", + ""); + I_Method1(void, setTrackNode, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setTrackNode__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, + __osg_Node_P1__getTrackNode, + "", + ""); + I_Method0(const osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getTrackNode, + "", + ""); + I_Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode, + Properties::NON_VIRTUAL, + __void__setTrackerMode__TrackerMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerMode, + Properties::NON_VIRTUAL, + __TrackerMode__getTrackerMode, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Constructor0(____NodeTrackerManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method1(void, setTrackNodePath, IN, const osgGA::NodeTrackerManipulator::ObserveredNodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_ObserveredNodePath_R1, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::ObserveredNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, + __ObserveredNodePath_R1__getTrackNodePath, + "", + ""); + I_Method1(void, setTrackNode, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setTrackNode__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, + __osg_Node_P1__getTrackNode, + "", + ""); + I_Method0(const osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getTrackNode, + "", + ""); + I_Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode, + Properties::NON_VIRTUAL, + __void__setTrackerMode__TrackerMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerMode, + Properties::NON_VIRTUAL, + __TrackerMode__getTrackerMode, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgGA/StateSetManipulator.cpp b/src/osgWrappers/osgGA/StateSetManipulator.cpp index 0e9a4cce3..0b2706fc5 100644 --- a/src/osgWrappers/osgGA/StateSetManipulator.cpp +++ b/src/osgWrappers/osgGA/StateSetManipulator.cpp @@ -10,9 +10,9 @@ #include #include +#include +#include #include -#include -#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator) + I_BaseType(osgGA::GUIEventHandler); I_BaseType(osgGA::GUIEventHandler); I_ConstructorWithDefaults1(IN, osg::StateSet *, stateset, 0, Properties::NON_EXPLICIT, @@ -35,8 +36,301 @@ BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "attach a STATESTATE to the manipulator to be used for specifying view. ", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setMaximumNumOfTextureUnits, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__setMaximumNumOfTextureUnits__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfTextureUnits, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumOfTextureUnits, + "", + ""); + I_Method1(void, setBackfaceEnabled, IN, bool, newbackface, + Properties::NON_VIRTUAL, + __void__setBackfaceEnabled__bool, + "", + ""); + I_Method0(bool, getBackfaceEnabled, + Properties::NON_VIRTUAL, + __bool__getBackfaceEnabled, + "", + ""); + I_Method1(void, setLightingEnabled, IN, bool, newlighting, + Properties::NON_VIRTUAL, + __void__setLightingEnabled__bool, + "", + ""); + I_Method0(bool, getLightingEnabled, + Properties::NON_VIRTUAL, + __bool__getLightingEnabled, + "", + ""); + I_Method1(void, setTextureEnabled, IN, bool, newtexture, + Properties::NON_VIRTUAL, + __void__setTextureEnabled__bool, + "", + ""); + I_Method0(bool, getTextureEnabled, + Properties::NON_VIRTUAL, + __bool__getTextureEnabled, + "", + ""); + I_Method1(void, setPolygonMode, IN, osg::PolygonMode::Mode, newpolygonmode, + Properties::NON_VIRTUAL, + __void__setPolygonMode__osg_PolygonMode_Mode, + "", + ""); + I_Method0(osg::PolygonMode::Mode, getPolygonMode, + Properties::NON_VIRTUAL, + __osg_PolygonMode_Mode__getPolygonMode, + "", + ""); + I_Method0(void, cyclePolygonMode, + Properties::NON_VIRTUAL, + __void__cyclePolygonMode, + "", + ""); + I_ConstructorWithDefaults1(IN, osg::StateSet *, stateset, 0, + Properties::NON_EXPLICIT, + ____StateSetManipulator__osg_StateSet_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, x, + Properties::VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "attach a STATESTATE to the manipulator to be used for specifying view. ", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setMaximumNumOfTextureUnits, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__setMaximumNumOfTextureUnits__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfTextureUnits, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumOfTextureUnits, + "", + ""); + I_Method1(void, setBackfaceEnabled, IN, bool, newbackface, + Properties::NON_VIRTUAL, + __void__setBackfaceEnabled__bool, + "", + ""); + I_Method0(bool, getBackfaceEnabled, + Properties::NON_VIRTUAL, + __bool__getBackfaceEnabled, + "", + ""); + I_Method1(void, setLightingEnabled, IN, bool, newlighting, + Properties::NON_VIRTUAL, + __void__setLightingEnabled__bool, + "", + ""); + I_Method0(bool, getLightingEnabled, + Properties::NON_VIRTUAL, + __bool__getLightingEnabled, + "", + ""); + I_Method1(void, setTextureEnabled, IN, bool, newtexture, + Properties::NON_VIRTUAL, + __void__setTextureEnabled__bool, + "", + ""); + I_Method0(bool, getTextureEnabled, + Properties::NON_VIRTUAL, + __bool__getTextureEnabled, + "", + ""); + I_Method1(void, setPolygonMode, IN, osg::PolygonMode::Mode, newpolygonmode, + Properties::NON_VIRTUAL, + __void__setPolygonMode__osg_PolygonMode_Mode, + "", + ""); + I_Method0(osg::PolygonMode::Mode, getPolygonMode, + Properties::NON_VIRTUAL, + __osg_PolygonMode_Mode__getPolygonMode, + "", + ""); + I_Method0(void, cyclePolygonMode, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator) + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults1(IN, osg::StateSet *, stateset, 0, + Properties::NON_EXPLICIT, + ____StateSetManipulator__osg_StateSet_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, x, + Properties::VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "attach a STATESTATE to the manipulator to be used for specifying view. ", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "get the attached a STATESTATE. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setMaximumNumOfTextureUnits, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__setMaximumNumOfTextureUnits__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfTextureUnits, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumOfTextureUnits, + "", + ""); + I_Method1(void, setBackfaceEnabled, IN, bool, newbackface, + Properties::NON_VIRTUAL, + __void__setBackfaceEnabled__bool, + "", + ""); + I_Method0(bool, getBackfaceEnabled, + Properties::NON_VIRTUAL, + __bool__getBackfaceEnabled, + "", + ""); + I_Method1(void, setLightingEnabled, IN, bool, newlighting, + Properties::NON_VIRTUAL, + __void__setLightingEnabled__bool, + "", + ""); + I_Method0(bool, getLightingEnabled, + Properties::NON_VIRTUAL, + __bool__getLightingEnabled, + "", + ""); + I_Method1(void, setTextureEnabled, IN, bool, newtexture, + Properties::NON_VIRTUAL, + __void__setTextureEnabled__bool, + "", + ""); + I_Method0(bool, getTextureEnabled, + Properties::NON_VIRTUAL, + __bool__getTextureEnabled, + "", + ""); + I_Method1(void, setPolygonMode, IN, osg::PolygonMode::Mode, newpolygonmode, + Properties::NON_VIRTUAL, + __void__setPolygonMode__osg_PolygonMode_Mode, + "", + ""); + I_Method0(osg::PolygonMode::Mode, getPolygonMode, + Properties::NON_VIRTUAL, + __osg_PolygonMode_Mode__getPolygonMode, + "", + ""); + I_Method0(void, cyclePolygonMode, + Properties::NON_VIRTUAL, + __void__cyclePolygonMode, + "", + ""); + I_ConstructorWithDefaults1(IN, osg::StateSet *, stateset, 0, + Properties::NON_EXPLICIT, + ____StateSetManipulator__osg_StateSet_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setStateSet, IN, osg::StateSet *, x, Properties::VIRTUAL, __void__setStateSet__osg_StateSet_P1, diff --git a/src/osgWrappers/osgGA/UFOManipulator.cpp b/src/osgWrappers/osgGA/UFOManipulator.cpp index 7fa7a746b..c99c8f634 100644 --- a/src/osgWrappers/osgGA/UFOManipulator.cpp +++ b/src/osgWrappers/osgGA/UFOManipulator.cpp @@ -10,10 +10,10 @@ #include #include +#include +#include +#include #include -#include -#include -#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____UFOManipulator, "Default constructor. ", @@ -82,22 +83,441 @@ BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator) "Sets the viewpoint matrix to the home position. ", ""); I_Method1(void, home, IN, double, x, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, Properties::VIRTUAL, __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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handles incoming osgGA events. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMinHeight__double, + "", + ""); + I_Method0(double, getMinHeight, + Properties::NON_VIRTUAL, + __double__getMinHeight, + "", + ""); + I_Method1(void, setMinDistance, IN, double, in_min_dist, + Properties::NON_VIRTUAL, + __void__setMinDistance__double, + "", + ""); + I_Method0(double, getMinDistance, + Properties::NON_VIRTUAL, + __double__getMinDistance, + "", + ""); + I_Method1(void, setForwardSpeed, IN, double, in_fs, + Properties::NON_VIRTUAL, + __void__setForwardSpeed__double, + "", + ""); + I_Method0(double, getForwardSpeed, + Properties::NON_VIRTUAL, + __double__getForwardSpeed, + "", + ""); + I_Method1(void, setSideSpeed, IN, double, in_ss, + Properties::NON_VIRTUAL, + __void__setSideSpeed__double, + "", + ""); + I_Method0(double, getSideSpeed, + Properties::NON_VIRTUAL, + __double__getSideSpeed, + "", + ""); + I_Method1(void, setRotationSpeed, IN, double, in_rot_speed, + Properties::NON_VIRTUAL, + __void__setRotationSpeed__double, + "", + ""); + I_Method0(double, getRotationSpeed, + Properties::NON_VIRTUAL, + __double__getRotationSpeed, + "", + ""); + I_Constructor0(____UFOManipulator, + "Default constructor. ", + ""); + I_Method0(const char *, className, Properties::VIRTUAL, + __C5_char_P1__className, + "return className ", + "returns constant \"UFO\" "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "Get the current viewmatrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getInverseMatrix, + "Get the current inverse view matrix. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, node, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Get the root node of the subgraph this manipulator is driving the eye through. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__home__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Sets the viewpoint matrix to the home position. ", + ""); + I_Method1(void, home, IN, double, x, + Properties::NON_VIRTUAL, + __void__home__double, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handles incoming osgGA events. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMinHeight__double, + "", + ""); + I_Method0(double, getMinHeight, + Properties::NON_VIRTUAL, + __double__getMinHeight, + "", + ""); + I_Method1(void, setMinDistance, IN, double, in_min_dist, + Properties::NON_VIRTUAL, + __void__setMinDistance__double, + "", + ""); + I_Method0(double, getMinDistance, + Properties::NON_VIRTUAL, + __double__getMinDistance, + "", + ""); + I_Method1(void, setForwardSpeed, IN, double, in_fs, + Properties::NON_VIRTUAL, + __void__setForwardSpeed__double, + "", + ""); + I_Method0(double, getForwardSpeed, + Properties::NON_VIRTUAL, + __double__getForwardSpeed, + "", + ""); + I_Method1(void, setSideSpeed, IN, double, in_ss, + Properties::NON_VIRTUAL, + __void__setSideSpeed__double, + "", + ""); + I_Method0(double, getSideSpeed, + Properties::NON_VIRTUAL, + __double__getSideSpeed, + "", + ""); + I_Method1(void, setRotationSpeed, IN, double, in_rot_speed, + Properties::NON_VIRTUAL, + __void__setRotationSpeed__double, + "", + ""); + I_Method0(double, getRotationSpeed, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____UFOManipulator, + "Default constructor. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return className ", + "returns constant \"UFO\" "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "Get the current viewmatrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getInverseMatrix, + "Get the current inverse view matrix. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, node, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Get the root node of the subgraph this manipulator is driving the eye through. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__home__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Sets the viewpoint matrix to the home position. ", + ""); + I_Method1(void, home, IN, double, x, + Properties::NON_VIRTUAL, + __void__home__double, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handles incoming osgGA events. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setMinHeight__double, + "", + ""); + I_Method0(double, getMinHeight, + Properties::NON_VIRTUAL, + __double__getMinHeight, + "", + ""); + I_Method1(void, setMinDistance, IN, double, in_min_dist, + Properties::NON_VIRTUAL, + __void__setMinDistance__double, + "", + ""); + I_Method0(double, getMinDistance, + Properties::NON_VIRTUAL, + __double__getMinDistance, + "", + ""); + I_Method1(void, setForwardSpeed, IN, double, in_fs, + Properties::NON_VIRTUAL, + __void__setForwardSpeed__double, + "", + ""); + I_Method0(double, getForwardSpeed, + Properties::NON_VIRTUAL, + __double__getForwardSpeed, + "", + ""); + I_Method1(void, setSideSpeed, IN, double, in_ss, + Properties::NON_VIRTUAL, + __void__setSideSpeed__double, + "", + ""); + I_Method0(double, getSideSpeed, + Properties::NON_VIRTUAL, + __double__getSideSpeed, + "", + ""); + I_Method1(void, setRotationSpeed, IN, double, in_rot_speed, + Properties::NON_VIRTUAL, + __void__setRotationSpeed__double, + "", + ""); + I_Method0(double, getRotationSpeed, + Properties::NON_VIRTUAL, + __double__getRotationSpeed, + "", + ""); + I_Constructor0(____UFOManipulator, + "Default constructor. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return className ", + "returns constant \"UFO\" "); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "Get the current viewmatrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getInverseMatrix, + "Get the current inverse view matrix. ", + ""); + I_Method1(void, setNode, IN, osg::Node *, node, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Get the root node of the subgraph this manipulator is driving the eye through. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__home__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Sets the viewpoint matrix to the home position. ", + ""); + I_Method1(void, home, IN, double, x, + Properties::NON_VIRTUAL, + __void__home__double, + "", + ""); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handles incoming osgGA events. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::NON_VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Reports Usage parameters to the application. ", ""); diff --git a/src/osgWrappers/osgManipulator/AntiSquish.cpp b/src/osgWrappers/osgManipulator/AntiSquish.cpp index c1af8b785..6fc474e4a 100644 --- a/src/osgWrappers/osgManipulator/AntiSquish.cpp +++ b/src/osgWrappers/osgManipulator/AntiSquish.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish) + I_BaseType(osg::MatrixTransform); I_BaseType(osg::MatrixTransform); I_Constructor0(____AntiSquish, "", @@ -45,17 +46,196 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", + ""); + I_Method1(void, setPivot, IN, const osg::Vec3 &, pvt, + Properties::NON_VIRTUAL, + __void__setPivot__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPivot, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPivot, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method2(osg::Matrix, computeUnSquishedMatrix, IN, const osg::Matrix &, x, IN, bool &, flag, + Properties::NON_VIRTUAL, + __osg_Matrix__computeUnSquishedMatrix__C5_osg_Matrix_R1__bool_R1, + "", + ""); + I_Constructor0(____AntiSquish, + "", + ""); + I_Constructor1(IN, const osg::Vec3 &, pivot, + Properties::NON_EXPLICIT, + ____AntiSquish__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, position, + ____AntiSquish__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgManipulator::AntiSquish &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AntiSquish__C5_AntiSquish_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, setPivot, IN, const osg::Vec3 &, pvt, + Properties::NON_VIRTUAL, + __void__setPivot__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPivot, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPivot, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method2(osg::Matrix, computeUnSquishedMatrix, IN, const osg::Matrix &, x, IN, bool &, flag, + Properties::NON_VIRTUAL, + __osg_Matrix__computeUnSquishedMatrix__C5_osg_Matrix_R1__bool_R1, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Pivot, + __C5_osg_Vec3_R1__getPivot, + __void__setPivot__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish) + I_BaseType(osg::MatrixTransform); + I_BaseType(osg::MatrixTransform); + I_Constructor0(____AntiSquish, + "", + ""); + I_Constructor1(IN, const osg::Vec3 &, pivot, + Properties::NON_EXPLICIT, + ____AntiSquish__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, position, + ____AntiSquish__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgManipulator::AntiSquish &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AntiSquish__C5_AntiSquish_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, setPivot, IN, const osg::Vec3 &, pvt, + Properties::NON_VIRTUAL, + __void__setPivot__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPivot, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPivot, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method2(osg::Matrix, computeUnSquishedMatrix, IN, const osg::Matrix &, x, IN, bool &, flag, + Properties::NON_VIRTUAL, + __osg_Matrix__computeUnSquishedMatrix__C5_osg_Matrix_R1__bool_R1, + "", + ""); + I_Constructor0(____AntiSquish, + "", + ""); + I_Constructor1(IN, const osg::Vec3 &, pivot, + Properties::NON_EXPLICIT, + ____AntiSquish__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, position, + ____AntiSquish__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgManipulator::AntiSquish &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AntiSquish__C5_AntiSquish_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", ""); I_Method1(void, setPivot, IN, const osg::Vec3 &, pvt, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgManipulator/Command.cpp b/src/osgWrappers/osgManipulator/Command.cpp index f788b4871..1d5610aba 100644 --- a/src/osgWrappers/osgManipulator/Command.cpp +++ b/src/osgWrappers/osgManipulator/Command.cpp @@ -10,11 +10,9 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include #include #include #include @@ -36,6 +34,65 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____MotionCommand, + "", + ""); + I_Method0(bool, execute, + Properties::PURE_VIRTUAL, + __bool__execute, + "Execute the command. ", + ""); + I_Method0(bool, unexecute, + Properties::PURE_VIRTUAL, + __bool__unexecute, + "Undo the command. ", + "The inverse of this command is executed. "); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::PURE_VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "Apply a constraint to the command. ", + ""); + I_Method1(void, addSelection, IN, osgManipulator::Selection *, x, + Properties::NON_VIRTUAL, + __void__addSelection__Selection_P1, + "Add Selection (receiver) to the command. ", + "The command will be executed on all the selections."); + I_Method1(void, removeSelection, IN, osgManipulator::Selection *, x, + Properties::NON_VIRTUAL, + __void__removeSelection__Selection_P1, + "Remove Selection (receiver) from the command. ", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::PURE_VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the Selection. ", + "This matrix is in the command's coordinate systems."); + I_Method2(void, setLocalToWorldAndWorldToLocal, IN, const osg::Matrix &, localToWorld, IN, const osg::Matrix &, worldToLocal, + Properties::NON_VIRTUAL, + __void__setLocalToWorldAndWorldToLocal__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorld, + "Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocal, + "Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system. ", + ""); + I_Method1(void, setStage, IN, const osgManipulator::MotionCommand::Stage, s, + Properties::NON_VIRTUAL, + __void__setStage__C5_Stage, + "", + ""); + I_Method0(osgManipulator::MotionCommand::Stage, getStage, + Properties::NON_VIRTUAL, + __Stage__getStage, + "", + ""); I_Constructor0(____MotionCommand, "", ""); @@ -108,132 +165,148 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Rotate3DCommand) - I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____Rotate3DCommand, - "", - ""); - I_Method0(bool, execute, - Properties::VIRTUAL, - __bool__execute, - "Execute the command. ", - ""); - I_Method0(bool, unexecute, - Properties::VIRTUAL, - __bool__unexecute, - "Undo the command. ", - "The inverse of this command is executed. "); - I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, - Properties::VIRTUAL, - __void__applyConstraint__C5_Constraint_P1, - "Apply a constraint to the command. ", - ""); - I_Method1(void, setRotation, IN, const osg::Quat &, rotation, - Properties::NON_VIRTUAL, - __void__setRotation__C5_osg_Quat_R1, - "", - ""); - I_Method0(const osg::Quat &, getRotation, - Properties::NON_VIRTUAL, - __C5_osg_Quat_R1__getRotation, - "", - ""); - I_Method0(osg::Matrix, getMotionMatrix, - Properties::VIRTUAL, - __osg_Matrix__getMotionMatrix, - "Gets the matrix for transforming the Selection. ", - "This matrix is in the command's coordinate systems."); - I_SimpleProperty(osg::Matrix, MotionMatrix, - __osg_Matrix__getMotionMatrix, - 0); - I_SimpleProperty(const osg::Quat &, Rotation, - __C5_osg_Quat_R1__getRotation, - __void__setRotation__C5_osg_Quat_R1); +BEGIN_ENUM_REFLECTOR(osgManipulator::MotionCommand::Stage) + I_EnumLabel(osgManipulator::MotionCommand::NONE); + I_EnumLabel(osgManipulator::MotionCommand::START); + I_EnumLabel(osgManipulator::MotionCommand::MOVE); + I_EnumLabel(osgManipulator::MotionCommand::FINISH); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DCommand) - I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____Scale1DCommand, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____MotionCommand, "", ""); I_Method0(bool, execute, - Properties::VIRTUAL, + Properties::PURE_VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, - Properties::VIRTUAL, + Properties::PURE_VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, - Properties::VIRTUAL, + Properties::PURE_VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); - I_Method1(void, setScale, IN, float, s, + I_Method1(void, addSelection, IN, osgManipulator::Selection *, x, Properties::NON_VIRTUAL, - __void__setScale__float, - "", - ""); - I_Method0(float, getScale, + __void__addSelection__Selection_P1, + "Add Selection (receiver) to the command. ", + "The command will be executed on all the selections."); + I_Method1(void, removeSelection, IN, osgManipulator::Selection *, x, Properties::NON_VIRTUAL, - __float__getScale, - "", - ""); - I_Method1(void, setScaleCenter, IN, float, center, - Properties::NON_VIRTUAL, - __void__setScaleCenter__float, - "", - ""); - I_Method0(float, getScaleCenter, - Properties::NON_VIRTUAL, - __float__getScaleCenter, - "", - ""); - I_Method1(void, setReferencePoint, IN, float, rp, - Properties::NON_VIRTUAL, - __void__setReferencePoint__float, - "ReferencePoint is used only for snapping. ", - ""); - I_Method0(float, getReferencePoint, - Properties::NON_VIRTUAL, - __float__getReferencePoint, - "", - ""); - I_Method1(void, setMinScale, IN, float, min, - Properties::NON_VIRTUAL, - __void__setMinScale__float, - "", - ""); - I_Method0(float, getMinScale, - Properties::NON_VIRTUAL, - __float__getMinScale, - "", + __void__removeSelection__Selection_P1, + "Remove Selection (receiver) from the command. ", ""); I_Method0(osg::Matrix, getMotionMatrix, - Properties::VIRTUAL, + Properties::PURE_VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); - I_SimpleProperty(float, MinScale, - __float__getMinScale, - __void__setMinScale__float); + I_Method2(void, setLocalToWorldAndWorldToLocal, IN, const osg::Matrix &, localToWorld, IN, const osg::Matrix &, worldToLocal, + Properties::NON_VIRTUAL, + __void__setLocalToWorldAndWorldToLocal__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorld, + "Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocal, + "Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system. ", + ""); + I_Method1(void, setStage, IN, const osgManipulator::MotionCommand::Stage, s, + Properties::NON_VIRTUAL, + __void__setStage__C5_Stage, + "", + ""); + I_Method0(osgManipulator::MotionCommand::Stage, getStage, + Properties::NON_VIRTUAL, + __Stage__getStage, + "", + ""); + I_Constructor0(____MotionCommand, + "", + ""); + I_Method0(bool, execute, + Properties::PURE_VIRTUAL, + __bool__execute, + "Execute the command. ", + ""); + I_Method0(bool, unexecute, + Properties::PURE_VIRTUAL, + __bool__unexecute, + "Undo the command. ", + "The inverse of this command is executed. "); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::PURE_VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "Apply a constraint to the command. ", + ""); + I_Method1(void, addSelection, IN, osgManipulator::Selection *, x, + Properties::NON_VIRTUAL, + __void__addSelection__Selection_P1, + "Add Selection (receiver) to the command. ", + "The command will be executed on all the selections."); + I_Method1(void, removeSelection, IN, osgManipulator::Selection *, x, + Properties::NON_VIRTUAL, + __void__removeSelection__Selection_P1, + "Remove Selection (receiver) from the command. ", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::PURE_VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the Selection. ", + "This matrix is in the command's coordinate systems."); + I_Method2(void, setLocalToWorldAndWorldToLocal, IN, const osg::Matrix &, localToWorld, IN, const osg::Matrix &, worldToLocal, + Properties::NON_VIRTUAL, + __void__setLocalToWorldAndWorldToLocal__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorld, + "Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocal, + "Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system. ", + ""); + I_Method1(void, setStage, IN, const osgManipulator::MotionCommand::Stage, s, + Properties::NON_VIRTUAL, + __void__setStage__C5_Stage, + "", + ""); + I_Method0(osgManipulator::MotionCommand::Stage, getStage, + Properties::NON_VIRTUAL, + __Stage__getStage, + "", + ""); + I_SimpleProperty(const osg::Matrix &, LocalToWorld, + __C5_osg_Matrix_R1__getLocalToWorld, + 0); I_SimpleProperty(osg::Matrix, MotionMatrix, __osg_Matrix__getMotionMatrix, 0); - I_SimpleProperty(float, ReferencePoint, - __float__getReferencePoint, - __void__setReferencePoint__float); - I_SimpleProperty(float, Scale, - __float__getScale, - __void__setScale__float); - I_SimpleProperty(float, ScaleCenter, - __float__getScaleCenter, - __void__setScaleCenter__float); + I_SimpleProperty(osgManipulator::MotionCommand::Stage, Stage, + __Stage__getStage, + 0); + I_SimpleProperty(const osg::Matrix &, WorldToLocal, + __C5_osg_Matrix_R1__getWorldToLocal, + 0); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) + I_BaseType(osgManipulator::MotionCommand); I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____Scale2DCommand, "", @@ -241,17 +314,17 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) I_Method0(bool, execute, Properties::VIRTUAL, __bool__execute, - "Execute the command. ", + "", ""); I_Method0(bool, unexecute, Properties::VIRTUAL, __bool__unexecute, - "Undo the command. ", - "The inverse of this command is executed. "); + "", + ""); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, - "Apply a constraint to the command. ", + "", ""); I_Method1(void, setScale, IN, const osg::Vec2 &, s, Properties::NON_VIRTUAL, @@ -296,8 +369,71 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) I_Method0(osg::Matrix, getMotionMatrix, Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, - "Gets the matrix for transforming the Selection. ", - "This matrix is in the command's coordinate systems."); + "", + ""); + I_Constructor0(____Scale2DCommand, + "", + ""); + I_Method0(bool, execute, + Properties::VIRTUAL, + __bool__execute, + "", + ""); + I_Method0(bool, unexecute, + Properties::VIRTUAL, + __bool__unexecute, + "", + ""); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec2 &, s, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getScale, + "", + ""); + I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + Properties::NON_VIRTUAL, + __void__setScaleCenter__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getScaleCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getScaleCenter, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec2_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec2 &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getReferencePoint, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMinScale, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "", + ""); I_SimpleProperty(const osg::Vec2 &, MinScale, __C5_osg_Vec2_R1__getMinScale, __void__setMinScale__C5_osg_Vec2_R1); @@ -315,201 +451,149 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __void__setScaleCenter__C5_osg_Vec2_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleUniformCommand) +BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____ScaleUniformCommand, + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____Scale2DCommand, "", ""); I_Method0(bool, execute, Properties::VIRTUAL, __bool__execute, - "Execute the command. ", + "", ""); I_Method0(bool, unexecute, Properties::VIRTUAL, __bool__unexecute, - "Undo the command. ", - "The inverse of this command is executed. "); + "", + ""); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, - "Apply a constraint to the command. ", - ""); - I_Method1(void, setScale, IN, float, s, - Properties::NON_VIRTUAL, - __void__setScale__float, "", ""); - I_Method0(float, getScale, + I_Method1(void, setScale, IN, const osg::Vec2 &, s, Properties::NON_VIRTUAL, - __float__getScale, + __void__setScale__C5_osg_Vec2_R1, "", ""); - I_Method1(void, setScaleCenter, IN, const osg::Vec3 &, center, + I_Method0(const osg::Vec2 &, getScale, Properties::NON_VIRTUAL, - __void__setScaleCenter__C5_osg_Vec3_R1, + __C5_osg_Vec2_R1__getScale, "", ""); - I_Method0(const osg::Vec3 &, getScaleCenter, + I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getScaleCenter, + __void__setScaleCenter__C5_osg_Vec2_R1, "", ""); - I_Method0(osg::Matrix, getMotionMatrix, - Properties::VIRTUAL, - __osg_Matrix__getMotionMatrix, - "Gets the matrix for transforming the Selection. ", - "This matrix is in the command's coordinate systems."); - I_SimpleProperty(osg::Matrix, MotionMatrix, - __osg_Matrix__getMotionMatrix, - 0); - I_SimpleProperty(float, Scale, - __float__getScale, - __void__setScale__float); - I_SimpleProperty(const osg::Vec3 &, ScaleCenter, - __C5_osg_Vec3_R1__getScaleCenter, - __void__setScaleCenter__C5_osg_Vec3_R1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) - I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____TranslateInLineCommand, - "", - ""); - I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, - ____TranslateInLineCommand__C5_osg_Vec3_R1__C5_osg_Vec3_R1, - "", - ""); - I_Method0(bool, execute, - Properties::VIRTUAL, - __bool__execute, - "Execute the command. ", - ""); - I_Method0(bool, unexecute, - Properties::VIRTUAL, - __bool__unexecute, - "Undo the command. ", - "The inverse of this command is executed. "); - I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, - Properties::VIRTUAL, - __void__applyConstraint__C5_Constraint_P1, - "Apply a constraint to the command. ", - ""); - I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + I_Method0(const osg::Vec2 &, getScaleCenter, Properties::NON_VIRTUAL, - __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + __C5_osg_Vec2_R1__getScaleCenter, "", ""); - I_Method0(const osg::Vec3 &, getLineStart, + I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getLineStart, - "", - ""); - I_Method0(const osg::Vec3 &, getLineEnd, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getLineEnd, - "", - ""); - I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, - Properties::NON_VIRTUAL, - __void__setTranslation__C5_osg_Vec3_R1, - "", - ""); - I_Method0(const osg::Vec3 &, getTranslation, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getTranslation, - "", - ""); - I_Method0(osg::Matrix, getMotionMatrix, - Properties::VIRTUAL, - __osg_Matrix__getMotionMatrix, - "Gets the matrix for transforming the Selection. ", - "This matrix is in the command's coordinate systems."); - I_SimpleProperty(const osg::Vec3 &, LineEnd, - __C5_osg_Vec3_R1__getLineEnd, - 0); - I_SimpleProperty(const osg::Vec3 &, LineStart, - __C5_osg_Vec3_R1__getLineStart, - 0); - I_SimpleProperty(osg::Matrix, MotionMatrix, - __osg_Matrix__getMotionMatrix, - 0); - I_SimpleProperty(const osg::Vec3 &, Translation, - __C5_osg_Vec3_R1__getTranslation, - __void__setTranslation__C5_osg_Vec3_R1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand) - I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____TranslateInPlaneCommand, - "", - ""); - I_Constructor1(IN, const osg::Plane &, plane, - Properties::NON_EXPLICIT, - ____TranslateInPlaneCommand__C5_osg_Plane_R1, - "", - ""); - I_Method0(bool, execute, - Properties::VIRTUAL, - __bool__execute, - "Execute the command. ", - ""); - I_Method0(bool, unexecute, - Properties::VIRTUAL, - __bool__unexecute, - "Undo the command. ", - "The inverse of this command is executed. "); - I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, - Properties::VIRTUAL, - __void__applyConstraint__C5_Constraint_P1, - "Apply a constraint to the command. ", - ""); - I_Method1(void, setPlane, IN, const osg::Plane &, plane, - Properties::NON_VIRTUAL, - __void__setPlane__C5_osg_Plane_R1, - "", - ""); - I_Method0(const osg::Plane &, getPlane, - Properties::NON_VIRTUAL, - __C5_osg_Plane_R1__getPlane, - "", - ""); - I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, - Properties::NON_VIRTUAL, - __void__setTranslation__C5_osg_Vec3_R1, - "", - ""); - I_Method0(const osg::Vec3 &, getTranslation, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getTranslation, - "", - ""); - I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp, - Properties::NON_VIRTUAL, - __void__setReferencePoint__C5_osg_Vec3_R1, + __void__setReferencePoint__C5_osg_Vec2_R1, "ReferencePoint is used only for snapping. ", ""); - I_Method0(const osg::Vec3 &, getReferencePoint, + I_Method0(const osg::Vec2 &, getReferencePoint, Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getReferencePoint, + __C5_osg_Vec2_R1__getReferencePoint, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMinScale, "", ""); I_Method0(osg::Matrix, getMotionMatrix, Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, - "Gets the matrix for transforming the Selection. ", - "This matrix is in the command's coordinate systems."); + "", + ""); + I_Constructor0(____Scale2DCommand, + "", + ""); + I_Method0(bool, execute, + Properties::VIRTUAL, + __bool__execute, + "", + ""); + I_Method0(bool, unexecute, + Properties::VIRTUAL, + __bool__unexecute, + "", + ""); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec2 &, s, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getScale, + "", + ""); + I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + Properties::NON_VIRTUAL, + __void__setScaleCenter__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getScaleCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getScaleCenter, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec2_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec2 &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getReferencePoint, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMinScale, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "", + ""); + I_SimpleProperty(const osg::Vec2 &, MinScale, + __C5_osg_Vec2_R1__getMinScale, + __void__setMinScale__C5_osg_Vec2_R1); I_SimpleProperty(osg::Matrix, MotionMatrix, __osg_Matrix__getMotionMatrix, 0); - I_SimpleProperty(const osg::Plane &, Plane, - __C5_osg_Plane_R1__getPlane, - __void__setPlane__C5_osg_Plane_R1); - I_SimpleProperty(const osg::Vec3 &, ReferencePoint, - __C5_osg_Vec3_R1__getReferencePoint, - __void__setReferencePoint__C5_osg_Vec3_R1); - I_SimpleProperty(const osg::Vec3 &, Translation, - __C5_osg_Vec3_R1__getTranslation, - __void__setTranslation__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec2 &, ReferencePoint, + __C5_osg_Vec2_R1__getReferencePoint, + __void__setReferencePoint__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2 &, Scale, + __C5_osg_Vec2_R1__getScale, + __void__setScale__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2 &, ScaleCenter, + __C5_osg_Vec2_R1__getScaleCenter, + __void__setScaleCenter__C5_osg_Vec2_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgManipulator/CommandManager.cpp b/src/osgWrappers/osgManipulator/CommandManager.cpp index 674cbb9fc..d897ac32c 100644 --- a/src/osgWrappers/osgManipulator/CommandManager.cpp +++ b/src/osgWrappers/osgManipulator/CommandManager.cpp @@ -26,6 +26,96 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::CommandManager) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____CommandManager, + "", + ""); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Selection &, selection, + Properties::VIRTUAL, + __bool__connect__Dragger_R1__Selection_R1, + "Connect a dragger to a selection. ", + "The selection will begin listening to commands generated by the dragger. This can be called multiple times to connect many selections to a dragger."); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Constraint &, constrain, + Properties::VIRTUAL, + __bool__connect__Dragger_R1__Constraint_R1, + "", + ""); + I_Method1(bool, disconnect, IN, osgManipulator::Dragger &, dragger, + Properties::VIRTUAL, + __bool__disconnect__Dragger_R1, + "Disconnect the selections from a dragger. ", + ""); + I_Method1(void, dispatch, IN, osgManipulator::MotionCommand &, command, + Properties::VIRTUAL, + __void__dispatch__MotionCommand_R1, + "Dispatches a command. ", + "Usually called from a dragger. "); + I_Method2(void, addSelectionsToCommand, IN, osgManipulator::MotionCommand &, command, IN, osgManipulator::Dragger &, dragger, + Properties::NON_VIRTUAL, + __void__addSelectionsToCommand__MotionCommand_R1__Dragger_R1, + "Add all selections connected to the dragger to the command. ", + ""); + I_Constructor0(____CommandManager, + "", + ""); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Selection &, selection, + Properties::VIRTUAL, + __bool__connect__Dragger_R1__Selection_R1, + "Connect a dragger to a selection. ", + "The selection will begin listening to commands generated by the dragger. This can be called multiple times to connect many selections to a dragger."); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Constraint &, constrain, + Properties::VIRTUAL, + __bool__connect__Dragger_R1__Constraint_R1, + "", + ""); + I_Method1(bool, disconnect, IN, osgManipulator::Dragger &, dragger, + Properties::VIRTUAL, + __bool__disconnect__Dragger_R1, + "Disconnect the selections from a dragger. ", + ""); + I_Method1(void, dispatch, IN, osgManipulator::MotionCommand &, command, + Properties::VIRTUAL, + __void__dispatch__MotionCommand_R1, + "Dispatches a command. ", + "Usually called from a dragger. "); + I_Method2(void, addSelectionsToCommand, IN, osgManipulator::MotionCommand &, command, IN, osgManipulator::Dragger &, dragger, + Properties::NON_VIRTUAL, + __void__addSelectionsToCommand__MotionCommand_R1__Dragger_R1, + "Add all selections connected to the dragger to the command. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CommandManager) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____CommandManager, + "", + ""); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Selection &, selection, + Properties::VIRTUAL, + __bool__connect__Dragger_R1__Selection_R1, + "Connect a dragger to a selection. ", + "The selection will begin listening to commands generated by the dragger. This can be called multiple times to connect many selections to a dragger."); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Constraint &, constrain, + Properties::VIRTUAL, + __bool__connect__Dragger_R1__Constraint_R1, + "", + ""); + I_Method1(bool, disconnect, IN, osgManipulator::Dragger &, dragger, + Properties::VIRTUAL, + __bool__disconnect__Dragger_R1, + "Disconnect the selections from a dragger. ", + ""); + I_Method1(void, dispatch, IN, osgManipulator::MotionCommand &, command, + Properties::VIRTUAL, + __void__dispatch__MotionCommand_R1, + "Dispatches a command. ", + "Usually called from a dragger. "); + I_Method2(void, addSelectionsToCommand, IN, osgManipulator::MotionCommand &, command, IN, osgManipulator::Dragger &, dragger, + Properties::NON_VIRTUAL, + __void__addSelectionsToCommand__MotionCommand_R1__Dragger_R1, + "Add all selections connected to the dragger to the command. ", + ""); I_Constructor0(____CommandManager, "", ""); diff --git a/src/osgWrappers/osgManipulator/Constraint.cpp b/src/osgWrappers/osgManipulator/Constraint.cpp index fbe09e188..2efab2b58 100644 --- a/src/osgWrappers/osgManipulator/Constraint.cpp +++ b/src/osgWrappers/osgManipulator/Constraint.cpp @@ -10,8 +10,9 @@ #include #include -#include +#include #include +#include #include #include @@ -25,6 +26,102 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Constraint) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method1(bool, constrain, IN, osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__constrain__MotionCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale1DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale2DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__constrain__ScaleUniformCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__constrain__MotionCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale1DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale2DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__constrain__ScaleUniformCommand_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Constraint) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method1(bool, constrain, IN, osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__constrain__MotionCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale1DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale2DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__constrain__ScaleUniformCommand_R1, + "", + ""); I_Method1(bool, constrain, IN, osgManipulator::MotionCommand &, x, Properties::VIRTUAL, __bool__constrain__MotionCommand_R1, @@ -59,6 +156,135 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgManipulator::GridConstraint) I_BaseType(osgManipulator::Constraint); + I_BaseType(osgManipulator::Constraint); + I_Constructor3(IN, osg::Node &, refNode, IN, const osg::Vec3d &, origin, IN, const osg::Vec3d &, spacing, + ____GridConstraint__osg_Node_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3d, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_osg_Vec3d, + "", + ""); + I_Method1(void, setSpacing, IN, const osg::Vec3d, spacing, + Properties::NON_VIRTUAL, + __void__setSpacing__C5_osg_Vec3d, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale1DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale2DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__constrain__ScaleUniformCommand_R1, + "", + ""); + I_Constructor3(IN, osg::Node &, refNode, IN, const osg::Vec3d &, origin, IN, const osg::Vec3d &, spacing, + ____GridConstraint__osg_Node_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3d, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_osg_Vec3d, + "", + ""); + I_Method1(void, setSpacing, IN, const osg::Vec3d, spacing, + Properties::NON_VIRTUAL, + __void__setSpacing__C5_osg_Vec3d, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale1DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale2DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__constrain__ScaleUniformCommand_R1, + "", + ""); + I_SimpleProperty(const osg::Vec3d, Origin, + 0, + __void__setOrigin__C5_osg_Vec3d); + I_SimpleProperty(const osg::Vec3d, Spacing, + 0, + __void__setSpacing__C5_osg_Vec3d); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::GridConstraint) + I_BaseType(osgManipulator::Constraint); + I_BaseType(osgManipulator::Constraint); + I_Constructor3(IN, osg::Node &, refNode, IN, const osg::Vec3d &, origin, IN, const osg::Vec3d &, spacing, + ____GridConstraint__osg_Node_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(void, setOrigin, IN, const osg::Vec3d, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_osg_Vec3d, + "", + ""); + I_Method1(void, setSpacing, IN, const osg::Vec3d, spacing, + Properties::NON_VIRTUAL, + __void__setSpacing__C5_osg_Vec3d, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__constrain__TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale1DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__constrain__Scale2DCommand_R1, + "", + ""); + I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__constrain__ScaleUniformCommand_R1, + "", + ""); I_Constructor3(IN, osg::Node &, refNode, IN, const osg::Vec3d &, origin, IN, const osg::Vec3d &, spacing, ____GridConstraint__osg_Node_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, "", diff --git a/src/osgWrappers/osgManipulator/Dragger.cpp b/src/osgWrappers/osgManipulator/Dragger.cpp index 068d394e3..b8af2b74f 100644 --- a/src/osgWrappers/osgManipulator/Dragger.cpp +++ b/src/osgWrappers/osgManipulator/Dragger.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -30,27 +30,231 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::Dragger > >, osgManipulator::CompositeDragger::DraggerList); BEGIN_OBJECT_REFLECTOR(osgManipulator::CompositeDragger) + I_BaseType(osgManipulator::Dragger); I_BaseType(osgManipulator::Dragger); I_Method0(const osgManipulator::CompositeDragger *, getComposite, Properties::VIRTUAL, __C5_CompositeDragger_P1__getComposite, - "Returns 0 if this Dragger is not a CompositeDragger. ", + "", ""); I_Method0(osgManipulator::CompositeDragger *, getComposite, Properties::VIRTUAL, __CompositeDragger_P1__getComposite, - "Returns 0 if this Dragger is not a CompositeDragger. ", + "", ""); I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, Properties::VIRTUAL, __void__setCommandManager__CommandManager_P1, - "Set/Get the CommandManager. ", - "Draggers use CommandManager to dispatch commands. "); + "", + ""); I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, Properties::VIRTUAL, __void__setParentDragger__Dragger_P1, - "Set/Get parent dragger. ", - "For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger."); + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(bool, addDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, + __bool__addDragger__Dragger_P1, + "", + ""); + I_Method1(bool, removeDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, + __bool__removeDragger__Dragger_P1, + "", + ""); + I_Method0(unsigned int, getNumDraggers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDraggers, + "", + ""); + I_Method1(osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Dragger_P1__getDragger__unsigned_int, + "", + ""); + I_Method1(const osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Dragger_P1__getDragger__unsigned_int, + "", + ""); + I_Method1(bool, containsDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, + __bool__containsDragger__C5_Dragger_P1, + "", + ""); + I_Method1(osgManipulator::CompositeDragger::DraggerList::iterator, findDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, + __DraggerList_iterator__findDragger__C5_Dragger_P1, + "", + ""); + I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __C5_CompositeDragger_P1__getComposite, + "", + ""); + I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __CompositeDragger_P1__getComposite, + "", + ""); + I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, + __void__setCommandManager__CommandManager_P1, + "", + ""); + I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, + __void__setParentDragger__Dragger_P1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(bool, addDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, + __bool__addDragger__Dragger_P1, + "", + ""); + I_Method1(bool, removeDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, + __bool__removeDragger__Dragger_P1, + "", + ""); + I_Method0(unsigned int, getNumDraggers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDraggers, + "", + ""); + I_Method1(osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Dragger_P1__getDragger__unsigned_int, + "", + ""); + I_Method1(const osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Dragger_P1__getDragger__unsigned_int, + "", + ""); + I_Method1(bool, containsDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, + __bool__containsDragger__C5_Dragger_P1, + "", + ""); + I_Method1(osgManipulator::CompositeDragger::DraggerList::iterator, findDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, + __DraggerList_iterator__findDragger__C5_Dragger_P1, + "", + ""); + I_SimpleProperty(osgManipulator::CommandManager *, CommandManager, + 0, + __void__setCommandManager__CommandManager_P1); + I_SimpleProperty(osgManipulator::CompositeDragger *, Composite, + __CompositeDragger_P1__getComposite, + 0); + I_ArrayProperty(osgManipulator::Dragger *, Dragger, + __Dragger_P1__getDragger__unsigned_int, + 0, + __unsigned_int__getNumDraggers, + __bool__addDragger__Dragger_P1, + 0, + 0); + I_SimpleProperty(osgManipulator::Dragger *, ParentDragger, + 0, + __void__setParentDragger__Dragger_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::Dragger > >, osgManipulator::CompositeDragger::DraggerList); + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CompositeDragger) + I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __C5_CompositeDragger_P1__getComposite, + "", + ""); + I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __CompositeDragger_P1__getComposite, + "", + ""); + I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, + __void__setCommandManager__CommandManager_P1, + "", + ""); + I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, + __void__setParentDragger__Dragger_P1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(bool, addDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, + __bool__addDragger__Dragger_P1, + "", + ""); + I_Method1(bool, removeDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, + __bool__removeDragger__Dragger_P1, + "", + ""); + I_Method0(unsigned int, getNumDraggers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDraggers, + "", + ""); + I_Method1(osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Dragger_P1__getDragger__unsigned_int, + "", + ""); + I_Method1(const osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Dragger_P1__getDragger__unsigned_int, + "", + ""); + I_Method1(bool, containsDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, + __bool__containsDragger__C5_Dragger_P1, + "", + ""); + I_Method1(osgManipulator::CompositeDragger::DraggerList::iterator, findDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, + __DraggerList_iterator__findDragger__C5_Dragger_P1, + "", + ""); + I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __C5_CompositeDragger_P1__getComposite, + "", + ""); + I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __CompositeDragger_P1__getComposite, + "", + ""); + I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, + __void__setCommandManager__CommandManager_P1, + "", + ""); + I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, + __void__setParentDragger__Dragger_P1, + "", + ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, @@ -111,6 +315,156 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgManipulator::Dragger) I_BaseType(osgManipulator::Selection); + I_BaseType(osgManipulator::Selection); + I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, + __void__setCommandManager__CommandManager_P1, + "Set/Get the CommandManager. ", + "Draggers use CommandManager to dispatch commands. "); + I_Method0(osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, + __CommandManager_P1__getCommandManager, + "", + ""); + I_Method0(const osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, + __C5_CommandManager_P1__getCommandManager, + "", + ""); + I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, + __void__setParentDragger__Dragger_P1, + "Set/Get parent dragger. ", + "For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger."); + I_Method0(osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, + __Dragger_P1__getParentDragger, + "", + ""); + I_Method0(const osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, + __C5_Dragger_P1__getParentDragger, + "", + ""); + I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __C5_CompositeDragger_P1__getComposite, + "Returns 0 if this Dragger is not a CompositeDragger. ", + ""); + I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __CompositeDragger_P1__getComposite, + "Returns 0 if this Dragger is not a CompositeDragger. ", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, + __void__setCommandManager__CommandManager_P1, + "Set/Get the CommandManager. ", + "Draggers use CommandManager to dispatch commands. "); + I_Method0(osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, + __CommandManager_P1__getCommandManager, + "", + ""); + I_Method0(const osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, + __C5_CommandManager_P1__getCommandManager, + "", + ""); + I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, + __void__setParentDragger__Dragger_P1, + "Set/Get parent dragger. ", + "For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger."); + I_Method0(osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, + __Dragger_P1__getParentDragger, + "", + ""); + I_Method0(const osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, + __C5_Dragger_P1__getParentDragger, + "", + ""); + I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __C5_CompositeDragger_P1__getComposite, + "Returns 0 if this Dragger is not a CompositeDragger. ", + ""); + I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __CompositeDragger_P1__getComposite, + "Returns 0 if this Dragger is not a CompositeDragger. ", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_SimpleProperty(osgManipulator::CommandManager *, CommandManager, + __CommandManager_P1__getCommandManager, + __void__setCommandManager__CommandManager_P1); + I_SimpleProperty(osgManipulator::CompositeDragger *, Composite, + __CompositeDragger_P1__getComposite, + 0); + I_SimpleProperty(osgManipulator::Dragger *, ParentDragger, + __Dragger_P1__getParentDragger, + __void__setParentDragger__Dragger_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Dragger) + I_BaseType(osgManipulator::Selection); + I_BaseType(osgManipulator::Selection); + I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, + __void__setCommandManager__CommandManager_P1, + "Set/Get the CommandManager. ", + "Draggers use CommandManager to dispatch commands. "); + I_Method0(osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, + __CommandManager_P1__getCommandManager, + "", + ""); + I_Method0(const osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, + __C5_CommandManager_P1__getCommandManager, + "", + ""); + I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, + __void__setParentDragger__Dragger_P1, + "Set/Get parent dragger. ", + "For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger."); + I_Method0(osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, + __Dragger_P1__getParentDragger, + "", + ""); + I_Method0(const osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, + __C5_Dragger_P1__getParentDragger, + "", + ""); + I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __C5_CompositeDragger_P1__getComposite, + "Returns 0 if this Dragger is not a CompositeDragger. ", + ""); + I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, + __CompositeDragger_P1__getComposite, + "Returns 0 if this Dragger is not a CompositeDragger. ", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, Properties::VIRTUAL, __void__setCommandManager__CommandManager_P1, @@ -168,6 +522,54 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Dragger) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgManipulator::Dragger::PointerInfo) + I_Constructor0(____PointerInfo, + "", + ""); + I_Constructor1(IN, const osgManipulator::Dragger::PointerInfo &, rhs, + Properties::NON_EXPLICIT, + ____PointerInfo__C5_PointerInfo_R1, + "", + ""); + I_Method0(bool, completed, + Properties::NON_VIRTUAL, + __bool__completed, + "", + ""); + I_Method0(void, next, + Properties::NON_VIRTUAL, + __void__next, + "", + ""); + I_Method0(osg::Vec2, pointToProject, + Properties::NON_VIRTUAL, + __osg_Vec2__pointToProject, + "", + ""); + I_Method0(osg::Vec3, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __osg_Vec3__getLocalIntersectPoint, + "", + ""); + I_Method3(bool, projectWindowXYIntoObject, IN, const osg::Vec2 &, windowCoord, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__C5_osg_Vec2_R1__osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method2(bool, projectWindowXYIntoObject, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Matrix &, getViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getViewMatrix, + "", + ""); + I_Method1(bool, contains, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, + __bool__contains__C5_osg_Node_P1, + "", + ""); I_Constructor0(____PointerInfo, "", ""); @@ -227,46 +629,117 @@ BEGIN_VALUE_REFLECTOR(osgManipulator::Dragger::PointerInfo) I_PublicMemberProperty(osgUtil::SceneView *, sv); I_PublicMemberProperty(osgUtil::IntersectVisitor::HitList, hitList); I_PublicMemberProperty(osgUtil::IntersectVisitor::HitList::iterator, hitIter); + I_PublicMemberProperty(osgUtil::SceneView *, sv); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::Dragger >) - I_Constructor0(____ref_ptr, +BEGIN_VALUE_REFLECTOR(osgManipulator::Dragger::PointerInfo) + I_Constructor0(____PointerInfo, "", ""); - I_Constructor1(IN, osgManipulator::Dragger *, ptr, + I_Constructor1(IN, const osgManipulator::Dragger::PointerInfo &, rhs, Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + ____PointerInfo__C5_PointerInfo_R1, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osgManipulator::Dragger > &, rp, + I_Method0(bool, completed, + Properties::NON_VIRTUAL, + __bool__completed, + "", + ""); + I_Method0(void, next, + Properties::NON_VIRTUAL, + __void__next, + "", + ""); + I_Method0(osg::Vec2, pointToProject, + Properties::NON_VIRTUAL, + __osg_Vec2__pointToProject, + "", + ""); + I_Method0(osg::Vec3, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __osg_Vec3__getLocalIntersectPoint, + "", + ""); + I_Method3(bool, projectWindowXYIntoObject, IN, const osg::Vec2 &, windowCoord, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__C5_osg_Vec2_R1__osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method2(bool, projectWindowXYIntoObject, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Matrix &, getViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getViewMatrix, + "", + ""); + I_Method1(bool, contains, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, + __bool__contains__C5_osg_Node_P1, + "", + ""); + I_Constructor0(____PointerInfo, + "", + ""); + I_Constructor1(IN, const osgManipulator::Dragger::PointerInfo &, rhs, Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, + ____PointerInfo__C5_PointerInfo_R1, "", ""); - I_Method0(osgManipulator::Dragger *, get, + I_Method0(bool, completed, Properties::NON_VIRTUAL, - __T_P1__get, + __bool__completed, "", ""); - I_Method0(bool, valid, + I_Method0(void, next, Properties::NON_VIRTUAL, - __bool__valid, + __void__next, "", ""); - I_Method0(osgManipulator::Dragger *, release, + I_Method0(osg::Vec2, pointToProject, Properties::NON_VIRTUAL, - __T_P1__release, + __osg_Vec2__pointToProject, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgManipulator::Dragger > &, rp, + I_Method0(osg::Vec3, getLocalIntersectPoint, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __osg_Vec3__getLocalIntersectPoint, "", ""); - I_SimpleProperty(osgManipulator::Dragger *, , - __T_P1__get, + I_Method3(bool, projectWindowXYIntoObject, IN, const osg::Vec2 &, windowCoord, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__C5_osg_Vec2_R1__osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method2(bool, projectWindowXYIntoObject, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Matrix &, getViewMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getViewMatrix, + "", + ""); + I_Method1(bool, contains, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, + __bool__contains__C5_osg_Node_P1, + "", + ""); + I_SimpleProperty(osg::Vec3, LocalIntersectPoint, + __osg_Vec3__getLocalIntersectPoint, 0); + I_SimpleProperty(const osg::Matrix &, ViewMatrix, + __C5_osg_Matrix_R1__getViewMatrix, + 0); + I_PublicMemberProperty(int, pixel_x); + I_PublicMemberProperty(int, pixel_y); + I_PublicMemberProperty(osgUtil::SceneView *, sv); + I_PublicMemberProperty(osgUtil::IntersectVisitor::HitList, hitList); + I_PublicMemberProperty(osgUtil::IntersectVisitor::HitList::iterator, hitIter); + I_PublicMemberProperty(osgUtil::SceneView *, sv); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgManipulator::Dragger > >); - diff --git a/src/osgWrappers/osgManipulator/GNUmakefile b/src/osgWrappers/osgManipulator/GNUmakefile index 5c1cfaeb2..bd389396b 100644 --- a/src/osgWrappers/osgManipulator/GNUmakefile +++ b/src/osgWrappers/osgManipulator/GNUmakefile @@ -8,15 +8,10 @@ CXXFILES =\ Constraint.cpp\ Dragger.cpp\ Projector.cpp\ - RotateCylinderDragger.cpp\ - RotateSphereDragger.cpp\ - Scale1DDragger.cpp\ - Scale2DDragger.cpp\ ScaleAxisDragger.cpp\ Selection.cpp\ TabBoxDragger.cpp\ TabPlaneDragger.cpp\ - TabPlaneTrackballDragger.cpp\ TrackballDragger.cpp\ Translate1DDragger.cpp\ Translate2DDragger.cpp\ diff --git a/src/osgWrappers/osgManipulator/Projector.cpp b/src/osgWrappers/osgManipulator/Projector.cpp index 0bd1f0c3c..f6423a08b 100644 --- a/src/osgWrappers/osgManipulator/Projector.cpp +++ b/src/osgWrappers/osgManipulator/Projector.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include +#include +#include +#include #include #include -#include #include #include @@ -28,6 +28,81 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderPlaneProjector) I_BaseType(osgManipulator::CylinderProjector); + I_BaseType(osgManipulator::CylinderProjector); + I_Constructor0(____CylinderPlaneProjector, + "", + ""); + I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, + ____CylinderPlaneProjector__osg_Cylinder_P1, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Method0(bool, isProjectionOnCylinder, + Properties::NON_VIRTUAL, + __bool__isProjectionOnCylinder, + "Returns true if the previous projection was on the cylinder and false if the projection was on the plane. ", + ""); + I_Method4(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, IN, bool, p1OnCyl, IN, const osg::Vec3 &, p2, IN, bool, p2OnCyl, + Properties::NON_VIRTUAL, + __osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool, + "", + ""); + I_Constructor0(____CylinderPlaneProjector, + "", + ""); + I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, + ____CylinderPlaneProjector__osg_Cylinder_P1, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Method0(bool, isProjectionOnCylinder, + Properties::NON_VIRTUAL, + __bool__isProjectionOnCylinder, + "Returns true if the previous projection was on the cylinder and false if the projection was on the plane. ", + ""); + I_Method4(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, IN, bool, p1OnCyl, IN, const osg::Vec3 &, p2, IN, bool, p2OnCyl, + Properties::NON_VIRTUAL, + __osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderPlaneProjector) + I_BaseType(osgManipulator::CylinderProjector); + I_BaseType(osgManipulator::CylinderProjector); + I_Constructor0(____CylinderPlaneProjector, + "", + ""); + I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, + ____CylinderPlaneProjector__osg_Cylinder_P1, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Method0(bool, isProjectionOnCylinder, + Properties::NON_VIRTUAL, + __bool__isProjectionOnCylinder, + "Returns true if the previous projection was on the cylinder and false if the projection was on the plane. ", + ""); + I_Method4(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, IN, bool, p1OnCyl, IN, const osg::Vec3 &, p2, IN, bool, p2OnCyl, + Properties::NON_VIRTUAL, + __osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool, + "", + ""); I_Constructor0(____CylinderPlaneProjector, "", ""); @@ -55,6 +130,117 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderProjector) I_BaseType(osgManipulator::Projector); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____CylinderProjector, + "", + ""); + I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, + ____CylinderProjector__osg_Cylinder_P1, + "", + ""); + I_Method1(void, setCylinder, IN, osg::Cylinder *, cylinder, + Properties::NON_VIRTUAL, + __void__setCylinder__osg_Cylinder_P1, + "", + ""); + I_Method0(const osg::Cylinder *, getCylinder, + Properties::NON_VIRTUAL, + __C5_osg_Cylinder_P1__getCylinder, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Method2(bool, isPointInFront, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, + __bool__isPointInFront__C5_Dragger_PointerInfo_R1__C5_osg_Matrix_R1, + "Returns true is the point is in front of the cylinder given the eye direction. ", + ""); + I_Method1(void, setFront, IN, bool, front, + Properties::NON_VIRTUAL, + __void__setFront__bool, + "", + ""); + I_Constructor0(____CylinderProjector, + "", + ""); + I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, + ____CylinderProjector__osg_Cylinder_P1, + "", + ""); + I_Method1(void, setCylinder, IN, osg::Cylinder *, cylinder, + Properties::NON_VIRTUAL, + __void__setCylinder__osg_Cylinder_P1, + "", + ""); + I_Method0(const osg::Cylinder *, getCylinder, + Properties::NON_VIRTUAL, + __C5_osg_Cylinder_P1__getCylinder, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Method2(bool, isPointInFront, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, + __bool__isPointInFront__C5_Dragger_PointerInfo_R1__C5_osg_Matrix_R1, + "Returns true is the point is in front of the cylinder given the eye direction. ", + ""); + I_Method1(void, setFront, IN, bool, front, + Properties::NON_VIRTUAL, + __void__setFront__bool, + "", + ""); + I_SimpleProperty(osg::Cylinder *, Cylinder, + 0, + __void__setCylinder__osg_Cylinder_P1); + I_SimpleProperty(bool, Front, + 0, + __void__setFront__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderProjector) + I_BaseType(osgManipulator::Projector); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____CylinderProjector, + "", + ""); + I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, + ____CylinderProjector__osg_Cylinder_P1, + "", + ""); + I_Method1(void, setCylinder, IN, osg::Cylinder *, cylinder, + Properties::NON_VIRTUAL, + __void__setCylinder__osg_Cylinder_P1, + "", + ""); + I_Method0(const osg::Cylinder *, getCylinder, + Properties::NON_VIRTUAL, + __C5_osg_Cylinder_P1__getCylinder, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Method2(bool, isPointInFront, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, + __bool__isPointInFront__C5_Dragger_PointerInfo_R1__C5_osg_Matrix_R1, + "Returns true is the point is in front of the cylinder given the eye direction. ", + ""); + I_Method1(void, setFront, IN, bool, front, + Properties::NON_VIRTUAL, + __void__setFront__bool, + "", + ""); I_Constructor0(____CylinderProjector, "", ""); @@ -98,6 +284,129 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector) I_BaseType(osgManipulator::Projector); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____LineProjector, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____LineProjector__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + Properties::NON_VIRTUAL, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLineStart, + "", + ""); + I_Method0(osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getLineStart, + "", + ""); + I_Method0(const osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLineEnd, + "", + ""); + I_Method0(osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getLineEnd, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. ", + "Returns true on successful projection."); + I_Constructor0(____LineProjector, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____LineProjector__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + Properties::NON_VIRTUAL, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLineStart, + "", + ""); + I_Method0(osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getLineStart, + "", + ""); + I_Method0(const osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLineEnd, + "", + ""); + I_Method0(osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getLineEnd, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. ", + "Returns true on successful projection."); + I_SimpleProperty(osg::Vec3 &, LineEnd, + __osg_Vec3_R1__getLineEnd, + 0); + I_SimpleProperty(osg::Vec3 &, LineStart, + __osg_Vec3_R1__getLineStart, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector) + I_BaseType(osgManipulator::Projector); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____LineProjector, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____LineProjector__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + Properties::NON_VIRTUAL, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLineStart, + "", + ""); + I_Method0(osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getLineStart, + "", + ""); + I_Method0(const osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLineEnd, + "", + ""); + I_Method0(osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, + __osg_Vec3_R1__getLineEnd, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. ", + "Returns true on successful projection."); I_Constructor0(____LineProjector, "", ""); @@ -145,6 +454,84 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgManipulator::PlaneProjector) I_BaseType(osgManipulator::Projector); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____PlaneProjector, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____PlaneProjector__C5_osg_Plane_R1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_Constructor0(____PlaneProjector, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____PlaneProjector__C5_osg_Plane_R1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); + I_SimpleProperty(const osg::Plane &, Plane, + __C5_osg_Plane_R1__getPlane, + __void__setPlane__C5_osg_Plane_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::PlaneProjector) + I_BaseType(osgManipulator::Projector); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____PlaneProjector, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____PlaneProjector__C5_osg_Plane_R1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection."); I_Constructor0(____PlaneProjector, "", ""); @@ -175,6 +562,30 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____Projector, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::PURE_VIRTUAL, + __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, + "Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes). ", + "SceneView in used for i projecting window coordinates into object coordinates and vice versa. Returns true on successful projection."); + I_Method1(void, setLocalToWorld, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, + __void__setLocalToWorld__C5_osg_Matrix_R1, + "Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorld, + "Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocal, + "Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system. ", + ""); I_Constructor0(____Projector, "", ""); @@ -206,73 +617,60 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::SpherePlaneProjector) - I_BaseType(osgManipulator::SphereProjector); - I_Constructor0(____SpherePlaneProjector, - "", - ""); - I_Constructor1(IN, osg::Sphere *, sphere, - Properties::NON_EXPLICIT, - ____SpherePlaneProjector__osg_Sphere_P1, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____Projector, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, - Properties::VIRTUAL, + Properties::PURE_VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, - "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere. ", - "Returns true on successful projection."); - I_Method0(bool, isProjectionOnSphere, + "Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes). ", + "SceneView in used for i projecting window coordinates into object coordinates and vice versa. Returns true on successful projection."); + I_Method1(void, setLocalToWorld, IN, const osg::Matrix &, localToWorld, Properties::NON_VIRTUAL, - __bool__isProjectionOnSphere, - "Returns true if the previous projection was on the sphere and false if the projection was on the plane. ", + __void__setLocalToWorld__C5_osg_Matrix_R1, + "Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", ""); - I_MethodWithDefaults5(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, , IN, bool, p1OnSphere, , IN, const osg::Vec3 &, p2, , IN, bool, p2OnSphere, , IN, float, radialFactor, 0.0f, - Properties::NON_VIRTUAL, - __osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool__float, - "", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgManipulator::SphereProjector) - I_BaseType(osgManipulator::Projector); - I_Constructor0(____SphereProjector, + I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorld, + "Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocal, + "Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system. ", + ""); + I_Constructor0(____Projector, "", ""); - I_Constructor1(IN, osg::Sphere *, sphere, - Properties::NON_EXPLICIT, - ____SphereProjector__osg_Sphere_P1, - "", - ""); - I_Method1(void, setSphere, IN, osg::Sphere *, sphere, - Properties::NON_VIRTUAL, - __void__setSphere__osg_Sphere_P1, - "", - ""); - I_Method0(const osg::Sphere *, getSphere, - Properties::NON_VIRTUAL, - __C5_osg_Sphere_P1__getSphere, - "", - ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, - Properties::VIRTUAL, + Properties::PURE_VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, - "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere. ", - "Returns true on successful projection."); - I_Method2(bool, isPointInFront, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + "Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes). ", + "SceneView in used for i projecting window coordinates into object coordinates and vice versa. Returns true on successful projection."); + I_Method1(void, setLocalToWorld, IN, const osg::Matrix &, localToWorld, Properties::NON_VIRTUAL, - __bool__isPointInFront__C5_Dragger_PointerInfo_R1__C5_osg_Matrix_R1, - "Returns true is the point is in front of the cylinder given the eye direction. ", + __void__setLocalToWorld__C5_osg_Matrix_R1, + "Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", ""); - I_Method1(void, setFront, IN, bool, front, + I_Method0(const osg::Matrix &, getLocalToWorld, Properties::NON_VIRTUAL, - __void__setFront__bool, - "", + __C5_osg_Matrix_R1__getLocalToWorld, + "Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", ""); - I_SimpleProperty(bool, Front, - 0, - __void__setFront__bool); - I_SimpleProperty(osg::Sphere *, Sphere, - 0, - __void__setSphere__osg_Sphere_P1); + I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocal, + "Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system. ", + ""); + I_SimpleProperty(const osg::Matrix &, LocalToWorld, + __C5_osg_Matrix_R1__getLocalToWorld, + __void__setLocalToWorld__C5_osg_Matrix_R1); + I_SimpleProperty(const osg::Matrix &, WorldToLocal, + __C5_osg_Matrix_R1__getWorldToLocal, + 0); END_REFLECTOR diff --git a/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp b/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp index c00ddc29d..979c0a3ad 100644 --- a/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp +++ b/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp @@ -22,6 +22,36 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleAxisDragger) I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____ScaleAxisDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Constructor0(____ScaleAxisDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleAxisDragger) + I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____ScaleAxisDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); I_Constructor0(____ScaleAxisDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/Selection.cpp b/src/osgWrappers/osgManipulator/Selection.cpp index e2bfcaaba..557fbb34a 100644 --- a/src/osgWrappers/osgManipulator/Selection.cpp +++ b/src/osgWrappers/osgManipulator/Selection.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -23,6 +24,126 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Selection) I_BaseType(osg::MatrixTransform); + I_BaseType(osg::MatrixTransform); + I_Constructor0(____Selection, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__receive__C5_MotionCommand_R1, + "Receive motion commands and set the MatrixTransform accordingly to transform selections. ", + "Returns true on success."); + I_Method1(bool, receive, IN, const osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Scale1DCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Scale2DCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_ScaleUniformCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Rotate3DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Rotate3DCommand_R1, + "", + ""); + I_Constructor0(____Selection, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__receive__C5_MotionCommand_R1, + "Receive motion commands and set the MatrixTransform accordingly to transform selections. ", + "Returns true on success."); + I_Method1(bool, receive, IN, const osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Scale1DCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Scale2DCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_ScaleUniformCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Rotate3DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Rotate3DCommand_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Selection) + I_BaseType(osg::MatrixTransform); + I_BaseType(osg::MatrixTransform); + I_Constructor0(____Selection, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__receive__C5_MotionCommand_R1, + "Receive motion commands and set the MatrixTransform accordingly to transform selections. ", + "Returns true on success."); + I_Method1(bool, receive, IN, const osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_TranslateInLineCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_TranslateInPlaneCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Scale1DCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Scale2DCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_ScaleUniformCommand_R1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::Rotate3DCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_Rotate3DCommand_R1, + "", + ""); I_Constructor0(____Selection, "", ""); diff --git a/src/osgWrappers/osgManipulator/TabBoxDragger.cpp b/src/osgWrappers/osgManipulator/TabBoxDragger.cpp index fdca9859c..26e3f1262 100644 --- a/src/osgWrappers/osgManipulator/TabBoxDragger.cpp +++ b/src/osgWrappers/osgManipulator/TabBoxDragger.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,54 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TabBoxDragger) I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabBoxDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPlaneColor__C5_osg_Vec4_R1, + "", + ""); + I_Constructor0(____TabBoxDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPlaneColor__C5_osg_Vec4_R1, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, PlaneColor, + 0, + __void__setPlaneColor__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TabBoxDragger) + I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabBoxDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPlaneColor__C5_osg_Vec4_R1, + "", + ""); I_Constructor0(____TabBoxDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp b/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp index 14567d148..c3c7610a0 100644 --- a/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp +++ b/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -26,6 +26,69 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneDragger) I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabPlaneDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_MethodWithDefaults1(void, setupDefaultGeometry, IN, bool, twoSidedHandle, true, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry__bool, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPlaneColor__C5_osg_Vec4_R1, + "", + ""); + I_Constructor0(____TabPlaneDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_MethodWithDefaults1(void, setupDefaultGeometry, IN, bool, twoSidedHandle, true, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry__bool, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPlaneColor__C5_osg_Vec4_R1, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, PlaneColor, + 0, + __void__setPlaneColor__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneDragger) + I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabPlaneDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_MethodWithDefaults1(void, setupDefaultGeometry, IN, bool, twoSidedHandle, true, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry__bool, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPlaneColor__C5_osg_Vec4_R1, + "", + ""); I_Constructor0(____TabPlaneDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/TrackballDragger.cpp b/src/osgWrappers/osgManipulator/TrackballDragger.cpp index 57366d178..536de21b1 100644 --- a/src/osgWrappers/osgManipulator/TrackballDragger.cpp +++ b/src/osgWrappers/osgManipulator/TrackballDragger.cpp @@ -22,6 +22,42 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TrackballDragger) I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, + Properties::NON_EXPLICIT, + ____TrackballDragger__bool, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, + Properties::NON_EXPLICIT, + ____TrackballDragger__bool, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TrackballDragger) + I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, + Properties::NON_EXPLICIT, + ____TrackballDragger__bool, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, Properties::NON_EXPLICIT, ____TrackballDragger__bool, diff --git a/src/osgWrappers/osgManipulator/Translate1DDragger.cpp b/src/osgWrappers/osgManipulator/Translate1DDragger.cpp index b774da2eb..fe9636aa4 100644 --- a/src/osgWrappers/osgManipulator/Translate1DDragger.cpp +++ b/src/osgWrappers/osgManipulator/Translate1DDragger.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include #include #include @@ -27,6 +27,147 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger) I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____Translate1DDragger, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____Translate1DDragger__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_Method1(void, setCheckForNodeInNodePath, IN, bool, onOff, + Properties::NON_VIRTUAL, + __void__setCheckForNodeInNodePath__bool, + "", + ""); + I_Constructor0(____Translate1DDragger, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____Translate1DDragger__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_Method1(void, setCheckForNodeInNodePath, IN, bool, onOff, + Properties::NON_VIRTUAL, + __void__setCheckForNodeInNodePath__bool, + "", + ""); + I_SimpleProperty(bool, CheckForNodeInNodePath, + 0, + __void__setCheckForNodeInNodePath__bool); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger) + I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____Translate1DDragger, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____Translate1DDragger__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_Method1(void, setCheckForNodeInNodePath, IN, bool, onOff, + Properties::NON_VIRTUAL, + __void__setCheckForNodeInNodePath__bool, + "", + ""); I_Constructor0(____Translate1DDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/Translate2DDragger.cpp b/src/osgWrappers/osgManipulator/Translate2DDragger.cpp index 5373fc048..6d5466f96 100644 --- a/src/osgWrappers/osgManipulator/Translate2DDragger.cpp +++ b/src/osgWrappers/osgManipulator/Translate2DDragger.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include #include #include @@ -27,6 +27,132 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate2DDragger) I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____Translate2DDragger, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____Translate2DDragger__C5_osg_Plane_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_Constructor0(____Translate2DDragger, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____Translate2DDragger__C5_osg_Plane_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate2DDragger) + I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____Translate2DDragger, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____Translate2DDragger__C5_osg_Plane_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); I_Constructor0(____Translate2DDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp b/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp index a66500330..b4be87dcd 100644 --- a/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp +++ b/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp @@ -22,6 +22,36 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateAxisDragger) I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TranslateAxisDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Constructor0(____TranslateAxisDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateAxisDragger) + I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TranslateAxisDragger, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); I_Constructor0(____TranslateAxisDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp b/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp index f66663cc6..46b44ad89 100644 --- a/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp +++ b/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -28,6 +28,105 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslatePlaneDragger) I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TranslatePlaneDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(osgManipulator::Translate1DDragger *, getTranslate1DDragger, + Properties::NON_VIRTUAL, + __Translate1DDragger_P1__getTranslate1DDragger, + "", + ""); + I_Method0(osgManipulator::Translate2DDragger *, getTranslate2DDragger, + Properties::NON_VIRTUAL, + __Translate2DDragger_P1__getTranslate2DDragger, + "", + ""); + I_Constructor0(____TranslatePlaneDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(osgManipulator::Translate1DDragger *, getTranslate1DDragger, + Properties::NON_VIRTUAL, + __Translate1DDragger_P1__getTranslate1DDragger, + "", + ""); + I_Method0(osgManipulator::Translate2DDragger *, getTranslate2DDragger, + Properties::NON_VIRTUAL, + __Translate2DDragger_P1__getTranslate2DDragger, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(osgManipulator::Translate1DDragger *, Translate1DDragger, + __Translate1DDragger_P1__getTranslate1DDragger, + 0); + I_SimpleProperty(osgManipulator::Translate2DDragger *, Translate2DDragger, + __Translate2DDragger_P1__getTranslate2DDragger, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslatePlaneDragger) + I_BaseType(osgManipulator::CompositeDragger); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TranslatePlaneDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(osgManipulator::Translate1DDragger *, getTranslate1DDragger, + Properties::NON_VIRTUAL, + __Translate1DDragger_P1__getTranslate1DDragger, + "", + ""); + I_Method0(osgManipulator::Translate2DDragger *, getTranslate2DDragger, + Properties::NON_VIRTUAL, + __Translate2DDragger_P1__getTranslate2DDragger, + "", + ""); I_Constructor0(____TranslatePlaneDragger, "", ""); diff --git a/src/osgWrappers/osgParticle/AccelOperator.cpp b/src/osgWrappers/osgParticle/AccelOperator.cpp index 686aad02d..278a20af2 100644 --- a/src/osgWrappers/osgParticle/AccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AccelOperator.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) + I_BaseType(osgParticle::Operator); I_BaseType(osgParticle::Operator); I_Constructor0(____AccelOperator, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAcceleration, @@ -75,12 +76,194 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) "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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) + I_BaseType(osgParticle::Operator); + I_BaseType(osgParticle::Operator); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, __void__beginOperate__Program_P1, "Perform some initializations. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp index 0fe7c77fa..9f1399dc8 100644 --- a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) + I_BaseType(osgParticle::Operator); I_BaseType(osgParticle::Operator); I_Constructor0(____AngularAccelOperator, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAngularAcceleration, @@ -70,12 +71,176 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) "Set the angular acceleration vector. ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getAngularAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngularAcceleration, + "Get the angular acceleration vector. ", + ""); + I_Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAngularAcceleration__C5_osg_Vec3_R1, + "Set the angular acceleration vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) + I_BaseType(osgParticle::Operator); + I_BaseType(osgParticle::Operator); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getAngularAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngularAcceleration, + "Get the angular acceleration vector. ", + ""); + I_Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAngularAcceleration__C5_osg_Vec3_R1, + "Set the angular acceleration vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getAngularAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngularAcceleration, + "Get the angular acceleration vector. ", + ""); + I_Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAngularAcceleration__C5_osg_Vec3_R1, + "Set the angular acceleration vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, __void__beginOperate__Program_P1, "Perform some initializations. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/BoxPlacer.cpp b/src/osgWrappers/osgParticle/BoxPlacer.cpp index ea21bd856..07646701b 100644 --- a/src/osgWrappers/osgParticle/BoxPlacer.cpp +++ b/src/osgWrappers/osgParticle/BoxPlacer.cpp @@ -10,12 +10,12 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) + I_BaseType(osgParticle::CenteredPlacer); I_BaseType(osgParticle::CenteredPlacer); I_Constructor0(____BoxPlacer, "", @@ -82,13 +83,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -97,20 +98,298 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__place__Particle_P1, "Place a particle. Do not call it manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getXRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setXRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setXRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setXRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setXRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getYRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getYRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setYRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setYRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(const osgParticle::rangef &, getZRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getZRange, + "Get the range of possible values for the height. ", + ""); + I_Method1(void, setZRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setZRange__C5_rangef_R1, + "Set the range of possible values for the height. ", + ""); + I_Method2(void, setZRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setZRange__float__float, + "Set the range of possible values for the height. ", + ""); + I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) + I_BaseType(osgParticle::CenteredPlacer); + I_BaseType(osgParticle::CenteredPlacer); + 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, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getXRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setXRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setXRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setXRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setXRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getYRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getYRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setYRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setYRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(const osgParticle::rangef &, getZRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getZRange, + "Get the range of possible values for the height. ", + ""); + I_Method1(void, setZRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setZRange__C5_rangef_R1, + "Set the range of possible values for the height. ", + ""); + I_Method2(void, setZRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setZRange__float__float, + "Set the range of possible values for the height. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getXRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setXRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setXRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setXRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setXRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getYRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getYRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setYRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setYRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(const osgParticle::rangef &, getZRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getZRange, + "Get the range of possible values for the height. ", + ""); + I_Method1(void, setZRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setZRange__C5_rangef_R1, + "Set the range of possible values for the height. ", + ""); + I_Method2(void, setZRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setZRange__float__float, + "Set the range of possible values for the height. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/CenteredPlacer.cpp b/src/osgWrappers/osgParticle/CenteredPlacer.cpp index 14226de49..33262a49d 100644 --- a/src/osgWrappers/osgParticle/CenteredPlacer.cpp +++ b/src/osgWrappers/osgParticle/CenteredPlacer.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,7 +23,8 @@ #undef OUT #endif -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) +BEGIN_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) + I_BaseType(osgParticle::Placer); I_BaseType(osgParticle::Placer); I_Constructor0(____CenteredPlacer, "", @@ -35,13 +36,132 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCenter, + "Get the center point. ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setCenter__C5_osg_Vec3_R1, + "Set the center point. ", + ""); + I_Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __void__setCenter__float__float__float, + "Set the center point. ", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCenter, + "Get the center point. ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setCenter__C5_osg_Vec3_R1, + "Set the center point. ", + ""); + I_Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) + I_BaseType(osgParticle::Placer); + I_BaseType(osgParticle::Placer); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCenter, + "Get the center point. ", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setCenter__C5_osg_Vec3_R1, + "Set the center point. ", + ""); + I_Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __void__setCenter__float__float__float, + "Set the center point. ", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp index 8ad94f510..1740fc1ae 100644 --- a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) + I_BaseType(osgParticle::ParticleSystem); I_BaseType(osgParticle::ParticleSystem); I_Constructor0(____ConnectedParticleSystem, "", @@ -36,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -51,13 +52,225 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "Draw the connected particles as either a line or a quad strip, depending upon viewing distance. . ", + ""); + I_Method0(const osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, + __C5_osgParticle_Particle_P1__getStartParticle, + "Get the (const) particle from where the line or quadstrip starts to be drawn. ", + ""); + I_Method0(osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, + __osgParticle_Particle_P1__getStartParticle, + "Get the particle from where the line or quadstrip starts to be drawn. ", + ""); + I_Method1(void, setMaxNumberOfParticlesToSkip, IN, unsigned int, maxNumberofParticlesToSkip, + Properties::NON_VIRTUAL, + __void__setMaxNumberOfParticlesToSkip__unsigned_int, + "Set the maximum numbers of particles to be skipped during the predraw filtering. ", + ""); + I_Method0(unsigned int, getMaxNumberOfParticlesToSkip, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxNumberOfParticlesToSkip, + "Get the maximum numbers of particles to be skipped during the predraw filtering. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "Draw the connected particles as either a line or a quad strip, depending upon viewing distance. . ", + ""); + I_Method0(const osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, + __C5_osgParticle_Particle_P1__getStartParticle, + "Get the (const) particle from where the line or quadstrip starts to be drawn. ", + ""); + I_Method0(osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, + __osgParticle_Particle_P1__getStartParticle, + "Get the particle from where the line or quadstrip starts to be drawn. ", + ""); + I_Method1(void, setMaxNumberOfParticlesToSkip, IN, unsigned int, maxNumberofParticlesToSkip, + Properties::NON_VIRTUAL, + __void__setMaxNumberOfParticlesToSkip__unsigned_int, + "Set the maximum numbers of particles to be skipped during the predraw filtering. ", + ""); + I_Method0(unsigned int, getMaxNumberOfParticlesToSkip, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxNumberOfParticlesToSkip, + "Get the maximum numbers of particles to be skipped during the predraw filtering. ", + ""); + I_SimpleProperty(unsigned int, MaxNumberOfParticlesToSkip, + __unsigned_int__getMaxNumberOfParticlesToSkip, + __void__setMaxNumberOfParticlesToSkip__unsigned_int); + I_SimpleProperty(osgParticle::Particle *, StartParticle, + __osgParticle_Particle_P1__getStartParticle, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) + I_BaseType(osgParticle::ParticleSystem); + I_BaseType(osgParticle::ParticleSystem); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "Draw the connected particles as either a line or a quad strip, depending upon viewing distance. . ", + ""); + I_Method0(const osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, + __C5_osgParticle_Particle_P1__getStartParticle, + "Get the (const) particle from where the line or quadstrip starts to be drawn. ", + ""); + I_Method0(osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, + __osgParticle_Particle_P1__getStartParticle, + "Get the particle from where the line or quadstrip starts to be drawn. ", + ""); + I_Method1(void, setMaxNumberOfParticlesToSkip, IN, unsigned int, maxNumberofParticlesToSkip, + Properties::NON_VIRTUAL, + __void__setMaxNumberOfParticlesToSkip__unsigned_int, + "Set the maximum numbers of particles to be skipped during the predraw filtering. ", + ""); + I_Method0(unsigned int, getMaxNumberOfParticlesToSkip, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxNumberOfParticlesToSkip, + "Get the maximum numbers of particles to be skipped during the predraw filtering. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, Properties::VIRTUAL, __Particle_P1__createParticle__C5_Particle_P1, diff --git a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp index 5e3608832..a6e43b3e0 100644 --- a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp +++ b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) + I_BaseType(osgParticle::Counter); I_BaseType(osgParticle::Counter); I_Constructor0(____ConstantRateCounter, "", @@ -34,13 +35,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -49,13 +50,195 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setMinimumNumberOfParticlesToCreate__int, + "", + ""); + I_Method0(int, getMinimumNumberOfParticlesToCreate, + Properties::NON_VIRTUAL, + __int__getMinimumNumberOfParticlesToCreate, + "", + ""); + I_Method1(void, setNumberOfParticlesPerSecondToCreate, IN, double, numPerSecond, + Properties::NON_VIRTUAL, + __void__setNumberOfParticlesPerSecondToCreate__double, + "", + ""); + I_Method0(double, getNumberOfParticlesPerSecondToCreate, + Properties::NON_VIRTUAL, + __double__getNumberOfParticlesPerSecondToCreate, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::VIRTUAL, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setMinimumNumberOfParticlesToCreate, IN, int, minNumToCreate, + Properties::NON_VIRTUAL, + __void__setMinimumNumberOfParticlesToCreate__int, + "", + ""); + I_Method0(int, getMinimumNumberOfParticlesToCreate, + Properties::NON_VIRTUAL, + __int__getMinimumNumberOfParticlesToCreate, + "", + ""); + I_Method1(void, setNumberOfParticlesPerSecondToCreate, IN, double, numPerSecond, + Properties::NON_VIRTUAL, + __void__setNumberOfParticlesPerSecondToCreate__double, + "", + ""); + I_Method0(double, getNumberOfParticlesPerSecondToCreate, + Properties::NON_VIRTUAL, + __double__getNumberOfParticlesPerSecondToCreate, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) + I_BaseType(osgParticle::Counter); + I_BaseType(osgParticle::Counter); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setMinimumNumberOfParticlesToCreate, IN, int, minNumToCreate, + Properties::NON_VIRTUAL, + __void__setMinimumNumberOfParticlesToCreate__int, + "", + ""); + I_Method0(int, getMinimumNumberOfParticlesToCreate, + Properties::NON_VIRTUAL, + __int__getMinimumNumberOfParticlesToCreate, + "", + ""); + I_Method1(void, setNumberOfParticlesPerSecondToCreate, IN, double, numPerSecond, + Properties::NON_VIRTUAL, + __void__setNumberOfParticlesPerSecondToCreate__double, + "", + ""); + I_Method0(double, getNumberOfParticlesPerSecondToCreate, + Properties::NON_VIRTUAL, + __double__getNumberOfParticlesPerSecondToCreate, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::VIRTUAL, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setMinimumNumberOfParticlesToCreate, IN, int, minNumToCreate, Properties::NON_VIRTUAL, __void__setMinimumNumberOfParticlesToCreate__int, diff --git a/src/osgWrappers/osgParticle/Counter.cpp b/src/osgWrappers/osgParticle/Counter.cpp index 5508cc8a6..a198595e1 100644 --- a/src/osgWrappers/osgParticle/Counter.cpp +++ b/src/osgWrappers/osgParticle/Counter.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____Counter, "", @@ -34,13 +35,99 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::PURE_VIRTUAL, + __int__numParticlesToCreate__double, + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::PURE_VIRTUAL, + __int__numParticlesToCreate__double, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::PURE_VIRTUAL, + __int__numParticlesToCreate__double, + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgParticle/Emitter.cpp b/src/osgWrappers/osgParticle/Emitter.cpp index 4bd994e07..02263a2e8 100644 --- a/src/osgWrappers/osgParticle/Emitter.cpp +++ b/src/osgWrappers/osgParticle/Emitter.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) + I_BaseType(osgParticle::ParticleProcessor); I_BaseType(osgParticle::ParticleProcessor); I_Constructor0(____Emitter, "", @@ -36,22 +37,174 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getParticleTemplate, + "Get the particle template. ", + ""); + I_Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setParticleTemplate__C5_Particle_R1, + "Set the particle template (particle is copied). ", + ""); + I_Method0(bool, getUseDefaultTemplate, + Properties::NON_VIRTUAL, + __bool__getUseDefaultTemplate, + "Return whether the particle system's default template should be used. ", + ""); + I_Method1(void, setUseDefaultTemplate, IN, bool, v, + Properties::NON_VIRTUAL, + __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_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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const osgParticle::Particle &, getParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getParticleTemplate, + "Get the particle template. ", + ""); + I_Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setParticleTemplate__C5_Particle_R1, + "Set the particle template (particle is copied). ", + ""); + I_Method0(bool, getUseDefaultTemplate, + Properties::NON_VIRTUAL, + __bool__getUseDefaultTemplate, + "Return whether the particle system's default template should be used. ", + ""); + I_Method1(void, setUseDefaultTemplate, IN, bool, v, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) + I_BaseType(osgParticle::ParticleProcessor); + I_BaseType(osgParticle::ParticleProcessor); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const osgParticle::Particle &, getParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getParticleTemplate, + "Get the particle template. ", + ""); + I_Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setParticleTemplate__C5_Particle_R1, + "Set the particle template (particle is copied). ", + ""); + I_Method0(bool, getUseDefaultTemplate, + Properties::NON_VIRTUAL, + __bool__getUseDefaultTemplate, + "Return whether the particle system's default template should be used. ", + ""); + I_Method1(void, setUseDefaultTemplate, IN, bool, v, + Properties::NON_VIRTUAL, + __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_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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(const osgParticle::Particle &, getParticleTemplate, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp b/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp index 9a8ca85cd..cd32bc565 100644 --- a/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp +++ b/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) + I_BaseType(osgParticle::ParticleEffect); I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, Properties::EXPLICIT, @@ -44,32 +45,262 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) + I_BaseType(osgParticle::ParticleEffect); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(void, setDefaults, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgParticle/ExplosionEffect.cpp b/src/osgWrappers/osgParticle/ExplosionEffect.cpp index f5cad5904..e5ac53064 100644 --- a/src/osgWrappers/osgParticle/ExplosionEffect.cpp +++ b/src/osgWrappers/osgParticle/ExplosionEffect.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) + I_BaseType(osgParticle::ParticleEffect); I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, Properties::EXPLICIT, @@ -44,32 +45,262 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) + I_BaseType(osgParticle::ParticleEffect); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(void, setDefaults, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgParticle/FireEffect.cpp b/src/osgWrappers/osgParticle/FireEffect.cpp index 498388ce1..85edbb0cd 100644 --- a/src/osgWrappers/osgParticle/FireEffect.cpp +++ b/src/osgWrappers/osgParticle/FireEffect.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) + I_BaseType(osgParticle::ParticleEffect); I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, Properties::EXPLICIT, @@ -44,32 +45,262 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) + I_BaseType(osgParticle::ParticleEffect); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(void, setDefaults, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp index 06110d832..a0152f1fc 100644 --- a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp +++ b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) + I_BaseType(osgParticle::Operator); I_BaseType(osgParticle::Operator); I_Constructor0(____FluidFrictionOperator, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setFluidDensity__float, @@ -110,12 +111,305 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) "Set the fluid parameters as for pure water (20°C temperature). ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setOverrideRadius, IN, float, r, + Properties::NON_VIRTUAL, + __void__setOverrideRadius__float, + "Set the overriden radius value (pass 0 if you want to use particle's radius). ", + ""); + I_Method0(float, getOverrideRadius, + Properties::NON_VIRTUAL, + __float__getOverrideRadius, + "Get the overriden radius value. ", + ""); + I_Method0(void, setFluidToAir, + Properties::NON_VIRTUAL, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) + I_BaseType(osgParticle::Operator); + I_BaseType(osgParticle::Operator); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setOverrideRadius, IN, float, r, + Properties::NON_VIRTUAL, + __void__setOverrideRadius__float, + "Set the overriden radius value (pass 0 if you want to use particle's radius). ", + ""); + I_Method0(float, getOverrideRadius, + Properties::NON_VIRTUAL, + __float__getOverrideRadius, + "Get the overriden radius value. ", + ""); + I_Method0(void, setFluidToAir, + Properties::NON_VIRTUAL, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initializations. Do not call this method manually. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setOverrideRadius, IN, float, r, + Properties::NON_VIRTUAL, + __void__setOverrideRadius__float, + "Set the overriden radius value (pass 0 if you want to use particle's radius). ", + ""); + I_Method0(float, getOverrideRadius, + Properties::NON_VIRTUAL, + __float__getOverrideRadius, + "Get the overriden radius value. ", + ""); + I_Method0(void, setFluidToAir, + Properties::NON_VIRTUAL, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, __void__beginOperate__Program_P1, "Perform some initializations. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/FluidProgram.cpp b/src/osgWrappers/osgParticle/FluidProgram.cpp index 9a5aea177..f940878e0 100644 --- a/src/osgWrappers/osgParticle/FluidProgram.cpp +++ b/src/osgWrappers/osgParticle/FluidProgram.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) + I_BaseType(osgParticle::Program); I_BaseType(osgParticle::Program); I_Constructor0(____FluidProgram, "", @@ -36,32 +37,328 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) + I_BaseType(osgParticle::Program); + I_BaseType(osgParticle::Program); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, + __void__setFluidViscosity__float, + "Set the viscosity of the fluid. ", + ""); + I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, + __float__getFluidViscosity, + "Get the viscosity of the fluid. ", + ""); + I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, + __void__setFluidDensity__float, + "Set the density of the fluid. ", + ""); + I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, + __float__getFluidDensity, + "Get the density of the fluid. ", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "Set the wind vector. ", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "Get the wind vector. ", + ""); + I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAcceleration__C5_osg_Vec3_R1, + "Set the acceleration vector. ", + ""); + I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAcceleration, + "Get the acceleration vector. ", + ""); + I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFluidToAir, + "Set the fluid parameters as for air (20°C temperature). ", + ""); + I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, + __void__setFluidToWater, + "Set the fluid parameters as for pure water (20°C temperature). ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setFluidViscosity, IN, float, v, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgParticle/ForceOperator.cpp b/src/osgWrappers/osgParticle/ForceOperator.cpp index 6af282554..b5f17d3b1 100644 --- a/src/osgWrappers/osgParticle/ForceOperator.cpp +++ b/src/osgWrappers/osgParticle/ForceOperator.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) + I_BaseType(osgParticle::Operator); I_BaseType(osgParticle::Operator); I_Constructor0(____ForceOperator, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getForce, @@ -70,12 +71,176 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) "Set the force vector. ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initialization. Do not call this method manually. ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getForce, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getForce, + "Get the force vector. ", + ""); + I_Method1(void, setForce, IN, const osg::Vec3 &, f, + Properties::NON_VIRTUAL, + __void__setForce__C5_osg_Vec3_R1, + "Set the force vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) + I_BaseType(osgParticle::Operator); + I_BaseType(osgParticle::Operator); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getForce, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getForce, + "Get the force vector. ", + ""); + I_Method1(void, setForce, IN, const osg::Vec3 &, f, + Properties::NON_VIRTUAL, + __void__setForce__C5_osg_Vec3_R1, + "Set the force vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__beginOperate__Program_P1, + "Perform some initialization. Do not call this method manually. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getForce, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getForce, + "Get the force vector. ", + ""); + I_Method1(void, setForce, IN, const osg::Vec3 &, f, + Properties::NON_VIRTUAL, + __void__setForce__C5_osg_Vec3_R1, + "Set the force vector. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, __void__beginOperate__Program_P1, "Perform some initialization. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/GNUmakefile b/src/osgWrappers/osgParticle/GNUmakefile index bd2288171..109f1e4a8 100644 --- a/src/osgWrappers/osgParticle/GNUmakefile +++ b/src/osgWrappers/osgParticle/GNUmakefile @@ -23,23 +23,15 @@ CXXFILES =\ MultiSegmentPlacer.cpp\ Operator.cpp\ Particle.cpp\ - ParticleEffect.cpp\ ParticleProcessor.cpp\ ParticleSystem.cpp\ ParticleSystemUpdater.cpp\ - Placer.cpp\ PointPlacer.cpp\ PrecipitationEffect.cpp\ Program.cpp\ RadialShooter.cpp\ RandomRateCounter.cpp\ - SectorPlacer.cpp\ SegmentPlacer.cpp\ - Shooter.cpp\ - SmokeEffect.cpp\ - SmokeTrailEffect.cpp\ - VariableRateCounter.cpp\ - range.cpp\ LIBS += -losgParticle -losg -losgIntrospection -losgUtil -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgParticle/Interpolator.cpp b/src/osgWrappers/osgParticle/Interpolator.cpp index 04a049594..d923d98a2 100644 --- a/src/osgWrappers/osgParticle/Interpolator.cpp +++ b/src/osgWrappers/osgParticle/Interpolator.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____Interpolator, "", @@ -37,13 +38,144 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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. ", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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 + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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. ", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgParticle/LinearInterpolator.cpp b/src/osgWrappers/osgParticle/LinearInterpolator.cpp index d7565ed8a..d40aa58fc 100644 --- a/src/osgWrappers/osgParticle/LinearInterpolator.cpp +++ b/src/osgWrappers/osgParticle/LinearInterpolator.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) + I_BaseType(osgParticle::Interpolator); I_BaseType(osgParticle::Interpolator); I_Constructor0(____LinearInterpolator, "", @@ -34,13 +35,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -49,17 +50,133 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __float__interpolate__float__float__float, - "Interpolate between floats. Must be overriden in descendant classes. ", + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::VIRTUAL, + __float__interpolate__float__float__float, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) + I_BaseType(osgParticle::Interpolator); + I_BaseType(osgParticle::Interpolator); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::VIRTUAL, + __float__interpolate__float__float__float, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::VIRTUAL, + __float__interpolate__float__float__float, + "", ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/ModularEmitter.cpp b/src/osgWrappers/osgParticle/ModularEmitter.cpp index 606c57608..2f515fb44 100644 --- a/src/osgWrappers/osgParticle/ModularEmitter.cpp +++ b/src/osgWrappers/osgParticle/ModularEmitter.cpp @@ -10,13 +10,13 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include #include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) + I_BaseType(osgParticle::Emitter); I_BaseType(osgParticle::Emitter); I_Constructor0(____ModularEmitter, "", @@ -38,32 +39,325 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, + __Counter_P1__getCounter, + "Get the counter object. ", + ""); + I_Method0(const osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, + __C5_Counter_P1__getCounter, + "Get the const Counter object. ", + ""); + I_Method1(void, setCounter, IN, osgParticle::Counter *, c, + Properties::NON_VIRTUAL, + __void__setCounter__Counter_P1, + "Set the Counter object. ", + ""); + I_Method0(float, getNumParticlesToCreateMovementCompenstationRatio, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setNumParticlesToCreateMovementCompenstationRatio__float, + "Set the ratio between number of particle to create in compenstation for movement of the emitter. ", + ""); + I_Method0(osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, + __Placer_P1__getPlacer, + "Get the Placer object. ", + ""); + I_Method0(const osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, + __C5_Placer_P1__getPlacer, + "Get the const Placer object. ", + ""); + I_Method1(void, setPlacer, IN, osgParticle::Placer *, p, + Properties::NON_VIRTUAL, + __void__setPlacer__Placer_P1, + "Set the Placer object. ", + ""); + I_Method0(osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, + __Shooter_P1__getShooter, + "Get the Shooter object. ", + ""); + I_Method0(const osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, + __C5_Shooter_P1__getShooter, + "Get the const Shooter object. ", + ""); + I_Method1(void, setShooter, IN, osgParticle::Shooter *, s, + Properties::NON_VIRTUAL, + __void__setShooter__Shooter_P1, + "Set the Shooter object. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, + __Counter_P1__getCounter, + "Get the counter object. ", + ""); + I_Method0(const osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, + __C5_Counter_P1__getCounter, + "Get the const Counter object. ", + ""); + I_Method1(void, setCounter, IN, osgParticle::Counter *, c, + Properties::NON_VIRTUAL, + __void__setCounter__Counter_P1, + "Set the Counter object. ", + ""); + I_Method0(float, getNumParticlesToCreateMovementCompenstationRatio, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setNumParticlesToCreateMovementCompenstationRatio__float, + "Set the ratio between number of particle to create in compenstation for movement of the emitter. ", + ""); + I_Method0(osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, + __Placer_P1__getPlacer, + "Get the Placer object. ", + ""); + I_Method0(const osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, + __C5_Placer_P1__getPlacer, + "Get the const Placer object. ", + ""); + I_Method1(void, setPlacer, IN, osgParticle::Placer *, p, + Properties::NON_VIRTUAL, + __void__setPlacer__Placer_P1, + "Set the Placer object. ", + ""); + I_Method0(osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, + __Shooter_P1__getShooter, + "Get the Shooter object. ", + ""); + I_Method0(const osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, + __C5_Shooter_P1__getShooter, + "Get the const Shooter object. ", + ""); + I_Method1(void, setShooter, IN, osgParticle::Shooter *, s, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) + I_BaseType(osgParticle::Emitter); + I_BaseType(osgParticle::Emitter); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, + __Counter_P1__getCounter, + "Get the counter object. ", + ""); + I_Method0(const osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, + __C5_Counter_P1__getCounter, + "Get the const Counter object. ", + ""); + I_Method1(void, setCounter, IN, osgParticle::Counter *, c, + Properties::NON_VIRTUAL, + __void__setCounter__Counter_P1, + "Set the Counter object. ", + ""); + I_Method0(float, getNumParticlesToCreateMovementCompenstationRatio, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setNumParticlesToCreateMovementCompenstationRatio__float, + "Set the ratio between number of particle to create in compenstation for movement of the emitter. ", + ""); + I_Method0(osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, + __Placer_P1__getPlacer, + "Get the Placer object. ", + ""); + I_Method0(const osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, + __C5_Placer_P1__getPlacer, + "Get the const Placer object. ", + ""); + I_Method1(void, setPlacer, IN, osgParticle::Placer *, p, + Properties::NON_VIRTUAL, + __void__setPlacer__Placer_P1, + "Set the Placer object. ", + ""); + I_Method0(osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, + __Shooter_P1__getShooter, + "Get the Shooter object. ", + ""); + I_Method0(const osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, + __C5_Shooter_P1__getShooter, + "Get the const Shooter object. ", + ""); + I_Method1(void, setShooter, IN, osgParticle::Shooter *, s, + Properties::NON_VIRTUAL, + __void__setShooter__Shooter_P1, + "Set the Shooter object. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(osgParticle::Counter *, getCounter, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgParticle/ModularProgram.cpp b/src/osgWrappers/osgParticle/ModularProgram.cpp index 1d3fab8b0..daacded8c 100644 --- a/src/osgWrappers/osgParticle/ModularProgram.cpp +++ b/src/osgWrappers/osgParticle/ModularProgram.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) + I_BaseType(osgParticle::Program); I_BaseType(osgParticle::Program); I_Constructor0(____ModularProgram, "", @@ -36,32 +37,223 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(int, numOperators, + Properties::NON_VIRTUAL, + __int__numOperators, + "Get the number of operators. ", + ""); + I_Method1(void, addOperator, IN, osgParticle::Operator *, o, + Properties::NON_VIRTUAL, + __void__addOperator__Operator_P1, + "Add an operator to the list. ", + ""); + I_Method1(osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, + __Operator_P1__getOperator__int, + "Get a pointer to an operator in the list. ", + ""); + I_Method1(const osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Operator_P1__getOperator__int, + "Get a const pointer to an operator in the list. ", + ""); + I_Method1(void, removeOperator, IN, int, i, + Properties::NON_VIRTUAL, + __void__removeOperator__int, + "Remove an operator from the list. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(int, numOperators, + Properties::NON_VIRTUAL, + __int__numOperators, + "Get the number of operators. ", + ""); + I_Method1(void, addOperator, IN, osgParticle::Operator *, o, + Properties::NON_VIRTUAL, + __void__addOperator__Operator_P1, + "Add an operator to the list. ", + ""); + I_Method1(osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, + __Operator_P1__getOperator__int, + "Get a pointer to an operator in the list. ", + ""); + I_Method1(const osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Operator_P1__getOperator__int, + "Get a const pointer to an operator in the list. ", + ""); + I_Method1(void, removeOperator, IN, int, i, + Properties::NON_VIRTUAL, + __void__removeOperator__int, + "Remove an operator from the list. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) + I_BaseType(osgParticle::Program); + I_BaseType(osgParticle::Program); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(int, numOperators, + Properties::NON_VIRTUAL, + __int__numOperators, + "Get the number of operators. ", + ""); + I_Method1(void, addOperator, IN, osgParticle::Operator *, o, + Properties::NON_VIRTUAL, + __void__addOperator__Operator_P1, + "Add an operator to the list. ", + ""); + I_Method1(osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, + __Operator_P1__getOperator__int, + "Get a pointer to an operator in the list. ", + ""); + I_Method1(const osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Operator_P1__getOperator__int, + "Get a const pointer to an operator in the list. ", + ""); + I_Method1(void, removeOperator, IN, int, i, + Properties::NON_VIRTUAL, + __void__removeOperator__int, + "Remove an operator from the list. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(int, numOperators, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp index e1b711440..a7b597755 100644 --- a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) + I_BaseType(osgParticle::Placer); I_BaseType(osgParticle::Placer); I_Constructor0(____MultiSegmentPlacer, "", @@ -36,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -51,13 +52,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method0(int, numVertices, Properties::NON_VIRTUAL, __int__numVertices, @@ -94,12 +95,255 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) "Remove a vertex. ", ""); I_Method1(void, place, IN, osgParticle::Particle *, P, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__place__Particle_P1, "Place a partice. Called automatically by ModularEmitter, do not call this method manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, numVertices, + Properties::NON_VIRTUAL, + __int__numVertices, + "Get the number of vertices which define the segments. ", + ""); + I_Method1(const osg::Vec3 &, getVertex, IN, int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertex__int, + "Get a vertex. ", + ""); + I_Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertex__int__float__float__float, + "Set a vertex. ", + ""); + I_Method1(void, addVertex, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__addVertex__C5_osg_Vec3_R1, + "Add a vertex. ", + ""); + I_Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __void__addVertex__float__float__float, + "Add a vertex. ", + ""); + I_Method1(void, removeVertex, IN, int, i, + Properties::NON_VIRTUAL, + __void__removeVertex__int, + "Remove a vertex. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a partice. Called automatically by ModularEmitter, do not call this method manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) + I_BaseType(osgParticle::Placer); + I_BaseType(osgParticle::Placer); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, numVertices, + Properties::NON_VIRTUAL, + __int__numVertices, + "Get the number of vertices which define the segments. ", + ""); + I_Method1(const osg::Vec3 &, getVertex, IN, int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertex__int, + "Get a vertex. ", + ""); + I_Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertex__int__float__float__float, + "Set a vertex. ", + ""); + I_Method1(void, addVertex, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__addVertex__C5_osg_Vec3_R1, + "Add a vertex. ", + ""); + I_Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __void__addVertex__float__float__float, + "Add a vertex. ", + ""); + I_Method1(void, removeVertex, IN, int, i, + Properties::NON_VIRTUAL, + __void__removeVertex__int, + "Remove a vertex. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a partice. Called automatically by ModularEmitter, do not call this method manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, numVertices, + Properties::NON_VIRTUAL, + __int__numVertices, + "Get the number of vertices which define the segments. ", + ""); + I_Method1(const osg::Vec3 &, getVertex, IN, int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertex__int, + "Get a vertex. ", + ""); + I_Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertex__int__float__float__float, + "Set a vertex. ", + ""); + I_Method1(void, addVertex, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__addVertex__C5_osg_Vec3_R1, + "Add a vertex. ", + ""); + I_Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __void__addVertex__float__float__float, + "Add a vertex. ", + ""); + I_Method1(void, removeVertex, IN, int, i, + Properties::NON_VIRTUAL, + __void__removeVertex__int, + "Remove a vertex. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a partice. Called automatically by ModularEmitter, do not call this method manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/Operator.cpp b/src/osgWrappers/osgParticle/Operator.cpp index ed9ee54d2..2c2bebaf4 100644 --- a/src/osgWrappers/osgParticle/Operator.cpp +++ b/src/osgWrappers/osgParticle/Operator.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____Operator, "", @@ -36,13 +37,162 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, + __bool__isEnabled, + "Get whether this operator is enabled. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "Enable or disable this operator. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__endOperate, + "Do something after all particles have been processed. ", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, + __bool__isEnabled, + "Get whether this operator is enabled. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "Enable or disable this operator. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__endOperate, + "Do something after all particles have been processed. ", + ""); + I_SimpleProperty(bool, Enabled, + 0, + __void__setEnabled__bool); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, + __bool__isEnabled, + "Get whether this operator is enabled. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "Enable or disable this operator. ", + ""); + I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::PURE_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__endOperate, + "Do something after all particles have been processed. ", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgParticle/Particle.cpp b/src/osgWrappers/osgParticle/Particle.cpp index a7c4f5304..35b8943f9 100644 --- a/src/osgWrappers/osgParticle/Particle.cpp +++ b/src/osgWrappers/osgParticle/Particle.cpp @@ -10,13 +10,14 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -323,6 +324,965 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle) __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1, "Method for initializing a particles texture coords as part of a connected particle system. ", ""); + I_Constructor0(____Particle, + "", + ""); + I_Method0(osgParticle::Particle::Shape, getShape, + Properties::NON_VIRTUAL, + __Shape__getShape, + "Get the shape of the particle. ", + ""); + I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s, + Properties::NON_VIRTUAL, + __void__setShape__Shape, + "Set the shape of the particle. ", + ""); + I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, + __bool__isAlive, + "Get whether the particle is still alive. ", + ""); + I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, + __double__getLifeTime, + "Get the life time of the particle (in seconds). ", + ""); + I_Method0(double, getAge, + Properties::NON_VIRTUAL, + __double__getAge, + "Get the age of the particle (in seconds). ", + ""); + I_Method0(const osgParticle::rangef &, getSizeRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getSizeRange, + "Get the minimum and maximum values for polygon size. ", + ""); + I_Method0(const osgParticle::rangef &, getAlphaRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getAlphaRange, + "Get the minimum and maximum values for alpha. ", + ""); + I_Method0(const osgParticle::rangev4 &, getColorRange, + Properties::NON_VIRTUAL, + __C5_rangev4_R1__getColorRange, + "Get the minimum and maximum values for color. ", + ""); + I_Method0(const osgParticle::Interpolator *, getSizeInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getSizeInterpolator, + "Get the interpolator for computing the size of polygons. ", + ""); + I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getAlphaInterpolator, + "Get the interpolator for computing alpha values. ", + ""); + I_Method0(const osgParticle::Interpolator *, getColorInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getColorInterpolator, + "Get the interpolator for computing color values. ", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMassInv, + "Get 1 / getMass(). ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position vector. ", + ""); + I_Method0(const osg::Vec3 &, getVelocity, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPreviousPosition, + "Get the previous position (the position before last update). ", + ""); + I_Method0(const osg::Vec3 &, getAngle, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngle, + "Get the angle vector. ", + ""); + I_Method0(const osg::Vec3 &, getAngularVelocity, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngularVelocity, + "Get the rotational velocity vector. ", + ""); + I_Method0(const osg::Vec3 &, getPreviousAngle, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPreviousAngle, + "Get the previous angle vector. ", + ""); + I_Method0(const osg::Vec4 &, getCurrentColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getCurrentColor, + "Get the current color. ", + ""); + I_Method0(float, getCurrentAlpha, + Properties::NON_VIRTUAL, + __float__getCurrentAlpha, + "Get the current alpha. ", + ""); + I_Method0(const float, getSTexCoord, + Properties::NON_VIRTUAL, + __C5_float__getSTexCoord, + "Get the s texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(float, getTCoord, + Properties::NON_VIRTUAL, + __float__getTCoord, + "Get the t texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(int, getTileS, + Properties::NON_VIRTUAL, + __int__getTileS, + "Get width of texture tile. ", + ""); + I_Method0(int, getTileT, + Properties::NON_VIRTUAL, + __int__getTileT, + "Get height of texture tile. ", + ""); + I_Method0(int, getNumTiles, + Properties::NON_VIRTUAL, + __int__getNumTiles, + "Get number of texture tiles. ", + ""); + I_Method0(void, kill, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setLifeTime__double, + "Set the life time of the particle. ", + ""); + I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setSizeRange__C5_rangef_R1, + "Set the minimum and maximum values for polygon size. ", + ""); + I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setAlphaRange__C5_rangef_R1, + "Set the minimum and maximum values for alpha. ", + ""); + I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r, + Properties::NON_VIRTUAL, + __void__setColorRange__C5_rangev4_R1, + "Set the minimum and maximum values for color. ", + ""); + I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri, + Properties::NON_VIRTUAL, + __void__setSizeInterpolator__Interpolator_P1, + "Set the interpolator for computing size values. ", + ""); + I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai, + Properties::NON_VIRTUAL, + __void__setAlphaInterpolator__Interpolator_P1, + "Set the interpolator for computing alpha values. ", + ""); + I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci, + Properties::NON_VIRTUAL, + __void__setColorInterpolator__Interpolator_P1, + "Set the interpolator for computing color values. ", + ""); + I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position vector. ", + ""); + I_Method1(void, setVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addVelocity__C5_osg_Vec3_R1, + "Add a vector to the velocity vector. ", + ""); + I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAngle__C5_osg_Vec3_R1, + "Set the angle vector. ", + ""); + I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addAngularVelocity__C5_osg_Vec3_R1, + "Add a vector to the angular velocity vector. ", + ""); + I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, + __void__transformAngleVelocity__C5_osg_Matrix_R1, + "Transform angle and angularVelocity vectors by a matrix. ", + ""); + I_Method1(bool, update, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__endRender, + "Perform some post-rendering tasks. Called automatically by particle systems. ", + ""); + I_Method0(float, getCurrentSize, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureTile__int__int__int, + "Specify how the particle texture is tiled. ", + ""); + I_Method1(void, setPreviousParticle, IN, int, previous, + Properties::NON_VIRTUAL, + __void__setPreviousParticle__int, + "Set the previous particle. ", + ""); + I_Method0(int, getPreviousParticle, + Properties::NON_VIRTUAL, + __int__getPreviousParticle, + "Get the previous particle. ", + ""); + I_Method1(void, setNextParticle, IN, int, next, + Properties::NON_VIRTUAL, + __void__setNextParticle__int, + "Set the next particle. ", + ""); + I_Method0(int, getNextParticle, + Properties::NON_VIRTUAL, + __int__getNextParticle, + "Get the const next particle. ", + ""); + I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osgParticle::Particle::Shape) + I_EnumLabel(osgParticle::Particle::POINT); + I_EnumLabel(osgParticle::Particle::QUAD); + I_EnumLabel(osgParticle::Particle::QUAD_TRIANGLESTRIP); + I_EnumLabel(osgParticle::Particle::HEXAGON); + I_EnumLabel(osgParticle::Particle::LINE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::Particle) + I_Constructor0(____Particle, + "", + ""); + I_Method0(osgParticle::Particle::Shape, getShape, + Properties::NON_VIRTUAL, + __Shape__getShape, + "Get the shape of the particle. ", + ""); + I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s, + Properties::NON_VIRTUAL, + __void__setShape__Shape, + "Set the shape of the particle. ", + ""); + I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, + __bool__isAlive, + "Get whether the particle is still alive. ", + ""); + I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, + __double__getLifeTime, + "Get the life time of the particle (in seconds). ", + ""); + I_Method0(double, getAge, + Properties::NON_VIRTUAL, + __double__getAge, + "Get the age of the particle (in seconds). ", + ""); + I_Method0(const osgParticle::rangef &, getSizeRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getSizeRange, + "Get the minimum and maximum values for polygon size. ", + ""); + I_Method0(const osgParticle::rangef &, getAlphaRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getAlphaRange, + "Get the minimum and maximum values for alpha. ", + ""); + I_Method0(const osgParticle::rangev4 &, getColorRange, + Properties::NON_VIRTUAL, + __C5_rangev4_R1__getColorRange, + "Get the minimum and maximum values for color. ", + ""); + I_Method0(const osgParticle::Interpolator *, getSizeInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getSizeInterpolator, + "Get the interpolator for computing the size of polygons. ", + ""); + I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getAlphaInterpolator, + "Get the interpolator for computing alpha values. ", + ""); + I_Method0(const osgParticle::Interpolator *, getColorInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getColorInterpolator, + "Get the interpolator for computing color values. ", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMassInv, + "Get 1 / getMass(). ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position vector. ", + ""); + I_Method0(const osg::Vec3 &, getVelocity, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPreviousPosition, + "Get the previous position (the position before last update). ", + ""); + I_Method0(const osg::Vec3 &, getAngle, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngle, + "Get the angle vector. ", + ""); + I_Method0(const osg::Vec3 &, getAngularVelocity, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngularVelocity, + "Get the rotational velocity vector. ", + ""); + I_Method0(const osg::Vec3 &, getPreviousAngle, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPreviousAngle, + "Get the previous angle vector. ", + ""); + I_Method0(const osg::Vec4 &, getCurrentColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getCurrentColor, + "Get the current color. ", + ""); + I_Method0(float, getCurrentAlpha, + Properties::NON_VIRTUAL, + __float__getCurrentAlpha, + "Get the current alpha. ", + ""); + I_Method0(const float, getSTexCoord, + Properties::NON_VIRTUAL, + __C5_float__getSTexCoord, + "Get the s texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(float, getTCoord, + Properties::NON_VIRTUAL, + __float__getTCoord, + "Get the t texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(int, getTileS, + Properties::NON_VIRTUAL, + __int__getTileS, + "Get width of texture tile. ", + ""); + I_Method0(int, getTileT, + Properties::NON_VIRTUAL, + __int__getTileT, + "Get height of texture tile. ", + ""); + I_Method0(int, getNumTiles, + Properties::NON_VIRTUAL, + __int__getNumTiles, + "Get number of texture tiles. ", + ""); + I_Method0(void, kill, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setLifeTime__double, + "Set the life time of the particle. ", + ""); + I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setSizeRange__C5_rangef_R1, + "Set the minimum and maximum values for polygon size. ", + ""); + I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setAlphaRange__C5_rangef_R1, + "Set the minimum and maximum values for alpha. ", + ""); + I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r, + Properties::NON_VIRTUAL, + __void__setColorRange__C5_rangev4_R1, + "Set the minimum and maximum values for color. ", + ""); + I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri, + Properties::NON_VIRTUAL, + __void__setSizeInterpolator__Interpolator_P1, + "Set the interpolator for computing size values. ", + ""); + I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai, + Properties::NON_VIRTUAL, + __void__setAlphaInterpolator__Interpolator_P1, + "Set the interpolator for computing alpha values. ", + ""); + I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci, + Properties::NON_VIRTUAL, + __void__setColorInterpolator__Interpolator_P1, + "Set the interpolator for computing color values. ", + ""); + I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position vector. ", + ""); + I_Method1(void, setVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addVelocity__C5_osg_Vec3_R1, + "Add a vector to the velocity vector. ", + ""); + I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAngle__C5_osg_Vec3_R1, + "Set the angle vector. ", + ""); + I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addAngularVelocity__C5_osg_Vec3_R1, + "Add a vector to the angular velocity vector. ", + ""); + I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, + __void__transformAngleVelocity__C5_osg_Matrix_R1, + "Transform angle and angularVelocity vectors by a matrix. ", + ""); + I_Method1(bool, update, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__endRender, + "Perform some post-rendering tasks. Called automatically by particle systems. ", + ""); + I_Method0(float, getCurrentSize, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureTile__int__int__int, + "Specify how the particle texture is tiled. ", + ""); + I_Method1(void, setPreviousParticle, IN, int, previous, + Properties::NON_VIRTUAL, + __void__setPreviousParticle__int, + "Set the previous particle. ", + ""); + I_Method0(int, getPreviousParticle, + Properties::NON_VIRTUAL, + __int__getPreviousParticle, + "Get the previous particle. ", + ""); + I_Method1(void, setNextParticle, IN, int, next, + Properties::NON_VIRTUAL, + __void__setNextParticle__int, + "Set the next particle. ", + ""); + I_Method0(int, getNextParticle, + Properties::NON_VIRTUAL, + __int__getNextParticle, + "Get the const next particle. ", + ""); + I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1, + "Method for initializing a particles texture coords as part of a connected particle system. ", + ""); + I_Constructor0(____Particle, + "", + ""); + I_Method0(osgParticle::Particle::Shape, getShape, + Properties::NON_VIRTUAL, + __Shape__getShape, + "Get the shape of the particle. ", + ""); + I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s, + Properties::NON_VIRTUAL, + __void__setShape__Shape, + "Set the shape of the particle. ", + ""); + I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, + __bool__isAlive, + "Get whether the particle is still alive. ", + ""); + I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, + __double__getLifeTime, + "Get the life time of the particle (in seconds). ", + ""); + I_Method0(double, getAge, + Properties::NON_VIRTUAL, + __double__getAge, + "Get the age of the particle (in seconds). ", + ""); + I_Method0(const osgParticle::rangef &, getSizeRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getSizeRange, + "Get the minimum and maximum values for polygon size. ", + ""); + I_Method0(const osgParticle::rangef &, getAlphaRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getAlphaRange, + "Get the minimum and maximum values for alpha. ", + ""); + I_Method0(const osgParticle::rangev4 &, getColorRange, + Properties::NON_VIRTUAL, + __C5_rangev4_R1__getColorRange, + "Get the minimum and maximum values for color. ", + ""); + I_Method0(const osgParticle::Interpolator *, getSizeInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getSizeInterpolator, + "Get the interpolator for computing the size of polygons. ", + ""); + I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getAlphaInterpolator, + "Get the interpolator for computing alpha values. ", + ""); + I_Method0(const osgParticle::Interpolator *, getColorInterpolator, + Properties::NON_VIRTUAL, + __C5_Interpolator_P1__getColorInterpolator, + "Get the interpolator for computing color values. ", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMassInv, + "Get 1 / getMass(). ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position vector. ", + ""); + I_Method0(const osg::Vec3 &, getVelocity, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPreviousPosition, + "Get the previous position (the position before last update). ", + ""); + I_Method0(const osg::Vec3 &, getAngle, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngle, + "Get the angle vector. ", + ""); + I_Method0(const osg::Vec3 &, getAngularVelocity, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAngularVelocity, + "Get the rotational velocity vector. ", + ""); + I_Method0(const osg::Vec3 &, getPreviousAngle, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPreviousAngle, + "Get the previous angle vector. ", + ""); + I_Method0(const osg::Vec4 &, getCurrentColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getCurrentColor, + "Get the current color. ", + ""); + I_Method0(float, getCurrentAlpha, + Properties::NON_VIRTUAL, + __float__getCurrentAlpha, + "Get the current alpha. ", + ""); + I_Method0(const float, getSTexCoord, + Properties::NON_VIRTUAL, + __C5_float__getSTexCoord, + "Get the s texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(float, getTCoord, + Properties::NON_VIRTUAL, + __float__getTCoord, + "Get the t texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(int, getTileS, + Properties::NON_VIRTUAL, + __int__getTileS, + "Get width of texture tile. ", + ""); + I_Method0(int, getTileT, + Properties::NON_VIRTUAL, + __int__getTileT, + "Get height of texture tile. ", + ""); + I_Method0(int, getNumTiles, + Properties::NON_VIRTUAL, + __int__getNumTiles, + "Get number of texture tiles. ", + ""); + I_Method0(void, kill, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setLifeTime__double, + "Set the life time of the particle. ", + ""); + I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setSizeRange__C5_rangef_R1, + "Set the minimum and maximum values for polygon size. ", + ""); + I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setAlphaRange__C5_rangef_R1, + "Set the minimum and maximum values for alpha. ", + ""); + I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r, + Properties::NON_VIRTUAL, + __void__setColorRange__C5_rangev4_R1, + "Set the minimum and maximum values for color. ", + ""); + I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri, + Properties::NON_VIRTUAL, + __void__setSizeInterpolator__Interpolator_P1, + "Set the interpolator for computing size values. ", + ""); + I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai, + Properties::NON_VIRTUAL, + __void__setAlphaInterpolator__Interpolator_P1, + "Set the interpolator for computing alpha values. ", + ""); + I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci, + Properties::NON_VIRTUAL, + __void__setColorInterpolator__Interpolator_P1, + "Set the interpolator for computing color values. ", + ""); + I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position vector. ", + ""); + I_Method1(void, setVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addVelocity__C5_osg_Vec3_R1, + "Add a vector to the velocity vector. ", + ""); + I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAngle__C5_osg_Vec3_R1, + "Set the angle vector. ", + ""); + I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addAngularVelocity__C5_osg_Vec3_R1, + "Add a vector to the angular velocity vector. ", + ""); + I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, + __void__transformAngleVelocity__C5_osg_Matrix_R1, + "Transform angle and angularVelocity vectors by a matrix. ", + ""); + I_Method1(bool, update, IN, double, dt, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__endRender, + "Perform some post-rendering tasks. Called automatically by particle systems. ", + ""); + I_Method0(float, getCurrentSize, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTextureTile__int__int__int, + "Specify how the particle texture is tiled. ", + ""); + I_Method1(void, setPreviousParticle, IN, int, previous, + Properties::NON_VIRTUAL, + __void__setPreviousParticle__int, + "Set the previous particle. ", + ""); + I_Method0(int, getPreviousParticle, + Properties::NON_VIRTUAL, + __int__getPreviousParticle, + "Get the previous particle. ", + ""); + I_Method1(void, setNextParticle, IN, int, next, + Properties::NON_VIRTUAL, + __void__setNextParticle__int, + "Set the next particle. ", + ""); + I_Method0(int, getNextParticle, + Properties::NON_VIRTUAL, + __int__getNextParticle, + "Get the const next particle. ", + ""); + I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __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); diff --git a/src/osgWrappers/osgParticle/ParticleProcessor.cpp b/src/osgWrappers/osgParticle/ParticleProcessor.cpp index c84fd41cd..54e2c7663 100644 --- a/src/osgWrappers/osgParticle/ParticleProcessor.cpp +++ b/src/osgWrappers/osgParticle/ParticleProcessor.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -33,6 +34,7 @@ BEGIN_ENUM_REFLECTOR(osgParticle::ParticleProcessor::ReferenceFrame) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) + I_BaseType(osg::Node); I_BaseType(osg::Node); I_Constructor0(____ParticleProcessor, "", @@ -44,22 +46,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, @@ -152,9 +154,9 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) "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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method0(const osg::Matrix &, getLocalToWorldMatrix, Properties::NON_VIRTUAL, @@ -199,8 +201,555 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "Get the reference frame. ", + ""); + I_Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setReferenceFrame__ReferenceFrame, + "Set the reference frame. ", + ""); + I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, + __bool__isEnabled, + "Get whether this processor is enabled or not. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "Set whether this processor is enabled or not. ", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem, + "Get a pointer to the destination particle system. ", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem, + "Get a const pointer to the destination particle system. ", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setParticleSystem__ParticleSystem_P1, + "Set the destination particle system. ", + ""); + I_Method1(void, setEndless, IN, bool, type, + Properties::NON_VIRTUAL, + __void__setEndless__bool, + "Set the endless flag of this processor. ", + ""); + I_Method0(bool, isEndless, + Properties::NON_VIRTUAL, + __bool__isEndless, + "Check whether this processor is endless. ", + ""); + I_Method1(void, setLifeTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setLifeTime__double, + "Set the lifetime of this processor. ", + ""); + I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, + __double__getLifeTime, + "Get the lifetime of this processor. ", + ""); + I_Method1(void, setStartTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setStartTime__double, + "Set the start time of this processor. ", + ""); + I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, + __double__getStartTime, + "Get the start time of this processor. ", + ""); + I_Method1(void, setCurrentTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setCurrentTime__double, + "Set the current time of this processor. ", + ""); + I_Method0(double, getCurrentTime, + Properties::NON_VIRTUAL, + __double__getCurrentTime, + "Get the current time of this processor. ", + ""); + I_Method1(void, setResetTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setResetTime__double, + "Set the reset time of this processor. A value of 0 disables reset. ", + ""); + I_Method0(double, getResetTime, + Properties::NON_VIRTUAL, + __double__getResetTime, + "Get the reset time of this processor. ", + ""); + I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const osg::Matrix &, getLocalToWorldMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorldMatrix, + "Get the current local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocalMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocalMatrix, + "Get the current world-to-local transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousLocalToWorldMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, + "Get the previous local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousWorldToLocalMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + 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 + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleProcessor::ReferenceFrame) + I_EnumLabel(osgParticle::ParticleProcessor::RELATIVE_RF); + I_EnumLabel(osgParticle::ParticleProcessor::ABSOLUTE_RF); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) + I_BaseType(osg::Node); + I_BaseType(osg::Node); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "Get the reference frame. ", + ""); + I_Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setReferenceFrame__ReferenceFrame, + "Set the reference frame. ", + ""); + I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, + __bool__isEnabled, + "Get whether this processor is enabled or not. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "Set whether this processor is enabled or not. ", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem, + "Get a pointer to the destination particle system. ", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem, + "Get a const pointer to the destination particle system. ", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setParticleSystem__ParticleSystem_P1, + "Set the destination particle system. ", + ""); + I_Method1(void, setEndless, IN, bool, type, + Properties::NON_VIRTUAL, + __void__setEndless__bool, + "Set the endless flag of this processor. ", + ""); + I_Method0(bool, isEndless, + Properties::NON_VIRTUAL, + __bool__isEndless, + "Check whether this processor is endless. ", + ""); + I_Method1(void, setLifeTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setLifeTime__double, + "Set the lifetime of this processor. ", + ""); + I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, + __double__getLifeTime, + "Get the lifetime of this processor. ", + ""); + I_Method1(void, setStartTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setStartTime__double, + "Set the start time of this processor. ", + ""); + I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, + __double__getStartTime, + "Get the start time of this processor. ", + ""); + I_Method1(void, setCurrentTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setCurrentTime__double, + "Set the current time of this processor. ", + ""); + I_Method0(double, getCurrentTime, + Properties::NON_VIRTUAL, + __double__getCurrentTime, + "Get the current time of this processor. ", + ""); + I_Method1(void, setResetTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setResetTime__double, + "Set the reset time of this processor. A value of 0 disables reset. ", + ""); + I_Method0(double, getResetTime, + Properties::NON_VIRTUAL, + __double__getResetTime, + "Get the reset time of this processor. ", + ""); + I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const osg::Matrix &, getLocalToWorldMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorldMatrix, + "Get the current local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocalMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocalMatrix, + "Get the current world-to-local transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousLocalToWorldMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, + "Get the previous local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousWorldToLocalMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "Get the reference frame. ", + ""); + I_Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setReferenceFrame__ReferenceFrame, + "Set the reference frame. ", + ""); + I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, + __bool__isEnabled, + "Get whether this processor is enabled or not. ", + ""); + I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, + __void__setEnabled__bool, + "Set whether this processor is enabled or not. ", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem, + "Get a pointer to the destination particle system. ", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem, + "Get a const pointer to the destination particle system. ", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setParticleSystem__ParticleSystem_P1, + "Set the destination particle system. ", + ""); + I_Method1(void, setEndless, IN, bool, type, + Properties::NON_VIRTUAL, + __void__setEndless__bool, + "Set the endless flag of this processor. ", + ""); + I_Method0(bool, isEndless, + Properties::NON_VIRTUAL, + __bool__isEndless, + "Check whether this processor is endless. ", + ""); + I_Method1(void, setLifeTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setLifeTime__double, + "Set the lifetime of this processor. ", + ""); + I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, + __double__getLifeTime, + "Get the lifetime of this processor. ", + ""); + I_Method1(void, setStartTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setStartTime__double, + "Set the start time of this processor. ", + ""); + I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, + __double__getStartTime, + "Get the start time of this processor. ", + ""); + I_Method1(void, setCurrentTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setCurrentTime__double, + "Set the current time of this processor. ", + ""); + I_Method0(double, getCurrentTime, + Properties::NON_VIRTUAL, + __double__getCurrentTime, + "Get the current time of this processor. ", + ""); + I_Method1(void, setResetTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setResetTime__double, + "Set the reset time of this processor. A value of 0 disables reset. ", + ""); + I_Method0(double, getResetTime, + Properties::NON_VIRTUAL, + __double__getResetTime, + "Get the reset time of this processor. ", + ""); + I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(const osg::Matrix &, getLocalToWorldMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getLocalToWorldMatrix, + "Get the current local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getWorldToLocalMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getWorldToLocalMatrix, + "Get the current world-to-local transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousLocalToWorldMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, + "Get the previous local-to-world transformation matrix (valid only during cull traversal). ", + ""); + I_Method0(const osg::Matrix &, getPreviousWorldToLocalMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); I_SimpleProperty(double, CurrentTime, __double__getCurrentTime, __void__setCurrentTime__double); diff --git a/src/osgWrappers/osgParticle/ParticleSystem.cpp b/src/osgWrappers/osgParticle/ParticleSystem.cpp index 14ae650f8..889a5e734 100644 --- a/src/osgWrappers/osgParticle/ParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystem.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include -#include +#include +#include #include #include @@ -33,6 +34,7 @@ BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::Alignment) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) + I_BaseType(osg::Drawable); I_BaseType(osg::Drawable); I_Constructor0(____ParticleSystem, "", @@ -44,13 +46,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -59,13 +61,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __Alignment__getParticleAlignment, @@ -224,12 +226,661 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) I_Method1(void, drawImplementation, IN, osg::State &, state, Properties::VIRTUAL, __void__drawImplementation__osg_State_R1, - "Deprecated. ", + "", ""); I_Method0(osg::BoundingBox, computeBound, Properties::VIRTUAL, __osg_BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", + "", + ""); + I_Method0(osgDB::ReadWriteMutex *, getReadWriteMutex, + Properties::NON_VIRTUAL, + __osgDB_ReadWriteMutex_P1__getReadWriteMutex, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment, + Properties::NON_VIRTUAL, + __Alignment__getParticleAlignment, + "Get the alignment type of particles. ", + ""); + I_Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a, + Properties::NON_VIRTUAL, + __void__setParticleAlignment__Alignment, + "Set the alignment type of particles. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorX, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAlignVectorX, + "Get the X-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAlignVectorX__C5_osg_Vec3_R1, + "Set the X-axis alignment vector. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorY, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAlignVectorY, + "Get the Y-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAlignVectors__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set the alignment vectors. ", + ""); + I_Method0(const osg::BoundingBox &, getDefaultBoundingBox, + Properties::NON_VIRTUAL, + __C5_osg_BoundingBox_R1__getDefaultBoundingBox, + "Get the default bounding box. ", + ""); + I_Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getDoublePassRendering, + "Get the double pass rendering flag. ", + ""); + I_Method1(void, setDoublePassRendering, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__isFrozen, + "Return true if the particle system is frozen. ", + ""); + I_Method1(void, setFrozen, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__numParticles, + "Get the number of allocated particles (alive + dead). ", + ""); + I_Method0(int, numDeadParticles, + Properties::NON_VIRTUAL, + __int__numDeadParticles, + "Get the number of dead particles. ", + ""); + I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method1(osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, + __Particle_P1__getParticle__int, + "Get a pointer to the i-th particle. ", + ""); + I_Method1(const osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Particle_P1__getParticle__int, + "Get a const pointer to the i-th particle. ", + ""); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__destroyParticle__int, + "Destroy the i-th particle. ", + ""); + I_Method1(void, reuseParticle, IN, int, i, + Properties::VIRTUAL, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method0(int, getLastFrameNumber, + Properties::NON_VIRTUAL, + __int__getLastFrameNumber, + "Get the last frame number. ", + ""); + I_Method0(osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __Particle_R1__getDefaultParticleTemplate, + "Get a reference to the default particle template. ", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getDefaultParticleTemplate, + "Get a const reference to the default particle template. ", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "Set the default particle template (particle is copied). ", + ""); + I_Method0(bool, getFreezeOnCull, + Properties::NON_VIRTUAL, + __bool__getFreezeOnCull, + "Get whether the particle system can freeze when culled. ", + ""); + I_Method1(void, setFreezeOnCull, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getLevelOfDetail, + "(EXPERIMENTAL) Get the level of detail. ", + ""); + I_Method1(void, setLevelOfDetail, IN, int, v, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__update__double, + "Update the particles. Don't call this directly, use a ParticleSystemUpdater instead. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "", + ""); + I_Method0(osgDB::ReadWriteMutex *, getReadWriteMutex, + Properties::NON_VIRTUAL, + __osgDB_ReadWriteMutex_P1__getReadWriteMutex, + "", + ""); + 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); + I_SimpleProperty(osgDB::ReadWriteMutex *, ReadWriteMutex, + __osgDB_ReadWriteMutex_P1__getReadWriteMutex, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::Alignment) + I_EnumLabel(osgParticle::ParticleSystem::BILLBOARD); + I_EnumLabel(osgParticle::ParticleSystem::FIXED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) + I_BaseType(osg::Drawable); + I_BaseType(osg::Drawable); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment, + Properties::NON_VIRTUAL, + __Alignment__getParticleAlignment, + "Get the alignment type of particles. ", + ""); + I_Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a, + Properties::NON_VIRTUAL, + __void__setParticleAlignment__Alignment, + "Set the alignment type of particles. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorX, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAlignVectorX, + "Get the X-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAlignVectorX__C5_osg_Vec3_R1, + "Set the X-axis alignment vector. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorY, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAlignVectorY, + "Get the Y-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAlignVectors__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set the alignment vectors. ", + ""); + I_Method0(const osg::BoundingBox &, getDefaultBoundingBox, + Properties::NON_VIRTUAL, + __C5_osg_BoundingBox_R1__getDefaultBoundingBox, + "Get the default bounding box. ", + ""); + I_Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getDoublePassRendering, + "Get the double pass rendering flag. ", + ""); + I_Method1(void, setDoublePassRendering, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__isFrozen, + "Return true if the particle system is frozen. ", + ""); + I_Method1(void, setFrozen, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__numParticles, + "Get the number of allocated particles (alive + dead). ", + ""); + I_Method0(int, numDeadParticles, + Properties::NON_VIRTUAL, + __int__numDeadParticles, + "Get the number of dead particles. ", + ""); + I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method1(osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, + __Particle_P1__getParticle__int, + "Get a pointer to the i-th particle. ", + ""); + I_Method1(const osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Particle_P1__getParticle__int, + "Get a const pointer to the i-th particle. ", + ""); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__destroyParticle__int, + "Destroy the i-th particle. ", + ""); + I_Method1(void, reuseParticle, IN, int, i, + Properties::VIRTUAL, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method0(int, getLastFrameNumber, + Properties::NON_VIRTUAL, + __int__getLastFrameNumber, + "Get the last frame number. ", + ""); + I_Method0(osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __Particle_R1__getDefaultParticleTemplate, + "Get a reference to the default particle template. ", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getDefaultParticleTemplate, + "Get a const reference to the default particle template. ", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "Set the default particle template (particle is copied). ", + ""); + I_Method0(bool, getFreezeOnCull, + Properties::NON_VIRTUAL, + __bool__getFreezeOnCull, + "Get whether the particle system can freeze when culled. ", + ""); + I_Method1(void, setFreezeOnCull, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getLevelOfDetail, + "(EXPERIMENTAL) Get the level of detail. ", + ""); + I_Method1(void, setLevelOfDetail, IN, int, v, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__update__double, + "Update the particles. Don't call this directly, use a ParticleSystemUpdater instead. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "", + ""); + I_Method0(osgDB::ReadWriteMutex *, getReadWriteMutex, + Properties::NON_VIRTUAL, + __osgDB_ReadWriteMutex_P1__getReadWriteMutex, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment, + Properties::NON_VIRTUAL, + __Alignment__getParticleAlignment, + "Get the alignment type of particles. ", + ""); + I_Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a, + Properties::NON_VIRTUAL, + __void__setParticleAlignment__Alignment, + "Set the alignment type of particles. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorX, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAlignVectorX, + "Get the X-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setAlignVectorX__C5_osg_Vec3_R1, + "Set the X-axis alignment vector. ", + ""); + I_Method0(const osg::Vec3 &, getAlignVectorY, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAlignVectorY, + "Get the Y-axis alignment vector. ", + ""); + I_Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setAlignVectors__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set the alignment vectors. ", + ""); + I_Method0(const osg::BoundingBox &, getDefaultBoundingBox, + Properties::NON_VIRTUAL, + __C5_osg_BoundingBox_R1__getDefaultBoundingBox, + "Get the default bounding box. ", + ""); + I_Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getDoublePassRendering, + "Get the double pass rendering flag. ", + ""); + I_Method1(void, setDoublePassRendering, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__isFrozen, + "Return true if the particle system is frozen. ", + ""); + I_Method1(void, setFrozen, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__numParticles, + "Get the number of allocated particles (alive + dead). ", + ""); + I_Method0(int, numDeadParticles, + Properties::NON_VIRTUAL, + __int__numDeadParticles, + "Get the number of dead particles. ", + ""); + I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method1(osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, + __Particle_P1__getParticle__int, + "Get a pointer to the i-th particle. ", + ""); + I_Method1(const osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, + __C5_Particle_P1__getParticle__int, + "Get a const pointer to the i-th particle. ", + ""); + I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__destroyParticle__int, + "Destroy the i-th particle. ", + ""); + I_Method1(void, reuseParticle, IN, int, i, + Properties::VIRTUAL, + __void__reuseParticle__int, + "Reuse the i-th particle. ", + ""); + I_Method0(int, getLastFrameNumber, + Properties::NON_VIRTUAL, + __int__getLastFrameNumber, + "Get the last frame number. ", + ""); + I_Method0(osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __Particle_R1__getDefaultParticleTemplate, + "Get a reference to the default particle template. ", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getDefaultParticleTemplate, + "Get a const reference to the default particle template. ", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "Set the default particle template (particle is copied). ", + ""); + I_Method0(bool, getFreezeOnCull, + Properties::NON_VIRTUAL, + __bool__getFreezeOnCull, + "Get whether the particle system can freeze when culled. ", + ""); + I_Method1(void, setFreezeOnCull, IN, bool, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __int__getLevelOfDetail, + "(EXPERIMENTAL) Get the level of detail. ", + ""); + I_Method1(void, setLevelOfDetail, IN, int, v, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__update__double, + "Update the particles. Don't call this directly, use a ParticleSystemUpdater instead. ", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "", ""); I_Method0(osgDB::ReadWriteMutex *, getReadWriteMutex, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp index 6d0a5587c..32e5ef73f 100644 --- a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) + I_BaseType(osg::Node); I_BaseType(osg::Node); I_Constructor0(____ParticleSystemUpdater, "", @@ -37,32 +38,32 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, @@ -117,13 +118,316 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__addParticleSystem__ParticleSystem_P1, + "Add a particle system to the list. ", + ""); + I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__replaceParticleSystem__ParticleSystem_P1__ParticleSystem_P1, + "Replace ParticleSystem with another ParticleSystem. ", + ""); + I_Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, + "set a particle system by index. ", + ""); + I_Method0(unsigned int, getNumParticleSystems, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParticleSystems, + "Return the number of particle systems on the list. ", + ""); + I_Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__containsParticleSystem__C5_ParticleSystem_P1, + "return true if ParticleSystem is contained within ParticlsSystemUpdater. ", + ""); + I_Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __unsigned_int__getParticleSystemIndex__C5_ParticleSystem_P1, + "get index number of ParticleSystem. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + 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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) + I_BaseType(osg::Node); + I_BaseType(osg::Node); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__addParticleSystem__ParticleSystem_P1, + "Add a particle system to the list. ", + ""); + I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__replaceParticleSystem__ParticleSystem_P1__ParticleSystem_P1, + "Replace ParticleSystem with another ParticleSystem. ", + ""); + I_Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, + "set a particle system by index. ", + ""); + I_Method0(unsigned int, getNumParticleSystems, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParticleSystems, + "Return the number of particle systems on the list. ", + ""); + I_Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__containsParticleSystem__C5_ParticleSystem_P1, + "return true if ParticleSystem is contained within ParticlsSystemUpdater. ", + ""); + I_Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __unsigned_int__getParticleSystemIndex__C5_ParticleSystem_P1, + "get index number of ParticleSystem. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__addParticleSystem__ParticleSystem_P1, + "Add a particle system to the list. ", + ""); + I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__replaceParticleSystem__ParticleSystem_P1__ParticleSystem_P1, + "Replace ParticleSystem with another ParticleSystem. ", + ""); + I_Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, + "set a particle system by index. ", + ""); + I_Method0(unsigned int, getNumParticleSystems, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParticleSystems, + "Return the number of particle systems on the list. ", + ""); + I_Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem__unsigned_int, + "Get a particle system from the list. ", + ""); + I_Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __bool__containsParticleSystem__C5_ParticleSystem_P1, + "return true if ParticleSystem is contained within ParticlsSystemUpdater. ", + ""); + I_Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __unsigned_int__getParticleSystemIndex__C5_ParticleSystem_P1, + "get index number of ParticleSystem. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); I_ArrayProperty(osgParticle::ParticleSystem *, ParticleSystem, __ParticleSystem_P1__getParticleSystem__unsigned_int, __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, diff --git a/src/osgWrappers/osgParticle/PointPlacer.cpp b/src/osgWrappers/osgParticle/PointPlacer.cpp index b8240b3a7..d54993d32 100644 --- a/src/osgWrappers/osgParticle/PointPlacer.cpp +++ b/src/osgWrappers/osgParticle/PointPlacer.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) + I_BaseType(osgParticle::CenteredPlacer); I_BaseType(osgParticle::CenteredPlacer); I_Constructor0(____PointPlacer, "", @@ -36,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -51,20 +52,154 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) + I_BaseType(osgParticle::CenteredPlacer); + I_BaseType(osgParticle::CenteredPlacer); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp index b9ad96f1e..1e11fe9f8 100644 --- a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp +++ b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp @@ -10,16 +10,6 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -30,397 +20,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) - I_BaseType(osg::Node); - I_Constructor0(____PrecipitationEffect, +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime) + I_Constructor0(____DepthMatrixStartTime, "", ""); - 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, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the node's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the node's class type. ", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", - ""); - I_Method1(void, rain, IN, float, intensity, - Properties::NON_VIRTUAL, - __void__rain__float, - "Set all the parameters to create an rain effect of specified intensity. ", - ""); - I_Method1(void, snow, IN, float, intensity, - Properties::NON_VIRTUAL, - __void__snow__float, - "Set all the parameters to create an snow effect of specified intensity. ", - ""); - I_Method1(void, setMaximumParticleDensity, IN, float, density, - Properties::NON_VIRTUAL, - __void__setMaximumParticleDensity__float, - "", - ""); - I_Method0(float, setMaximumParticleDensity, - Properties::NON_VIRTUAL, - __float__setMaximumParticleDensity, - "", - ""); - I_Method1(void, setWind, IN, const osg::Vec3 &, wind, - Properties::NON_VIRTUAL, - __void__setWind__C5_osg_Vec3_R1, - "", - ""); - I_Method0(const osg::Vec3 &, getWind, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getWind, - "", - ""); - I_Method1(void, setPosition, IN, const osg::Vec3 &, position, - Properties::NON_VIRTUAL, - __void__setPosition__C5_osg_Vec3_R1, - "", - ""); - I_Method0(const osg::Vec3 &, getPosition, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getPosition, - "", - ""); - I_Method1(void, setCellSize, IN, const osg::Vec3 &, cellSize, - Properties::NON_VIRTUAL, - __void__setCellSize__C5_osg_Vec3_R1, - "", - ""); - I_Method0(const osg::Vec3 &, getCellSize, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getCellSize, - "", - ""); - I_Method1(void, setParticleSpeed, IN, float, particleSpeed, - Properties::NON_VIRTUAL, - __void__setParticleSpeed__float, - "", - ""); - I_Method0(float, getParticleSpeed, - Properties::NON_VIRTUAL, - __float__getParticleSpeed, - "", - ""); - I_Method1(void, setParticleSize, IN, float, particleSize, - Properties::NON_VIRTUAL, - __void__setParticleSize__float, - "", - ""); - I_Method0(float, getParticleSize, - Properties::NON_VIRTUAL, - __float__getParticleSize, - "", - ""); - I_Method1(void, setParticleColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setParticleColor__C5_osg_Vec4_R1, - "", - ""); - I_Method0(const osg::Vec4 &, getParticleColor, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getParticleColor, - "", - ""); - I_Method1(void, setNearTransition, IN, float, nearTransition, - Properties::NON_VIRTUAL, - __void__setNearTransition__float, - "", - ""); - I_Method0(float, getNearTransition, - Properties::NON_VIRTUAL, - __float__getNearTransition, - "", - ""); - I_Method1(void, setFarTransition, IN, float, farTransition, - Properties::NON_VIRTUAL, - __void__setFarTransition__float, - "", - ""); - I_Method0(float, getFarTransition, - Properties::NON_VIRTUAL, - __float__getFarTransition, - "", - ""); - I_Method1(void, setUseFarLineSegments, IN, bool, useFarLineSegments, - Properties::NON_VIRTUAL, - __void__setUseFarLineSegments__bool, - "", - ""); - I_Method0(bool, getUseFarLineSegments, - Properties::NON_VIRTUAL, - __bool__getUseFarLineSegments, - "", - ""); - I_Method1(void, setFog, IN, osg::Fog *, fog, - Properties::NON_VIRTUAL, - __void__setFog__osg_Fog_P1, - "", - ""); - I_Method0(osg::Fog *, getFog, - Properties::NON_VIRTUAL, - __osg_Fog_P1__getFog, - "", - ""); - I_Method0(const osg::Fog *, getFog, - Properties::NON_VIRTUAL, - __C5_osg_Fog_P1__getFog, - "", - ""); - I_Method0(osg::Geometry *, getQuadGeometry, - Properties::NON_VIRTUAL, - __osg_Geometry_P1__getQuadGeometry, - "", - ""); - I_Method0(osg::StateSet *, getQuadStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getQuadStateSet, - "", - ""); - I_Method0(osg::Geometry *, getLineGeometry, - Properties::NON_VIRTUAL, - __osg_Geometry_P1__getLineGeometry, - "", - ""); - I_Method0(osg::StateSet *, getLineStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getLineStateSet, - "", - ""); - I_Method0(osg::Geometry *, getPointGeometry, - Properties::NON_VIRTUAL, - __osg_Geometry_P1__getPointGeometry, - "", - ""); - I_Method0(osg::StateSet *, getPointStateSet, - Properties::NON_VIRTUAL, - __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(____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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__supports__C5_osg_PrimitiveFunctor_R1, - "Return true if the Drawable subclass supports accept(PrimitiveFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__supports__C5_osg_PrimitiveIndexFunctor_R1, - "Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setRequiresPreviousMatrix__bool, - "", - ""); - I_Method0(bool, getRequiresPreviousMatrix, - Properties::NON_VIRTUAL, - __bool__getRequiresPreviousMatrix, - "", - ""); - I_Method1(void, setGeometry, IN, osg::Geometry *, geom, - Properties::NON_VIRTUAL, - __void__setGeometry__osg_Geometry_P1, - "", - ""); - I_Method0(osg::Geometry *, getGeometry, - Properties::NON_VIRTUAL, - __osg_Geometry_P1__getGeometry, - "", - ""); - I_Method0(const osg::Geometry *, getGeometry, - Properties::NON_VIRTUAL, - __C5_osg_Geometry_P1__getGeometry, - "", - ""); - I_Method1(void, setDrawType, IN, GLenum, type, - Properties::NON_VIRTUAL, - __void__setDrawType__GLenum, - "", - ""); - I_Method0(GLenum, getDrawType, - Properties::NON_VIRTUAL, - __GLenum__getDrawType, - "", - ""); - I_Method1(void, setNumberOfVertices, IN, unsigned int, numVertices, - Properties::NON_VIRTUAL, - __void__setNumberOfVertices__unsigned_int, - "", - ""); - I_Method0(unsigned int, getNumberOfVertices, - Properties::NON_VIRTUAL, - __unsigned_int__getNumberOfVertices, - "", - ""); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __CellMatrixMap_R1__getCurrentCellMatrixMap, - "", - ""); - I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getPreviousCellMatrixMap, - Properties::NON_VIRTUAL, - __CellMatrixMap_R1__getPreviousCellMatrixMap, - "", - ""); - I_Method0(void, newFrame, - Properties::NON_VIRTUAL, - __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, - ____Cell__int__int__int, - "", - ""); - I_PublicMemberProperty(int, i); - I_PublicMemberProperty(int, j); - I_PublicMemberProperty(int, k); + I_PublicMemberProperty(float, depth); + I_PublicMemberProperty(float, startTime); + I_PublicMemberProperty(osg::Matrix, modelview); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime) @@ -438,5 +44,9 @@ BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::L ""); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell COMMA osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime >); +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::LessFunctor) + I_Constructor0(____LessFunctor, + "", + ""); +END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/Program.cpp b/src/osgWrappers/osgParticle/Program.cpp index 9af93b226..a5df63886 100644 --- a/src/osgWrappers/osgParticle/Program.cpp +++ b/src/osgWrappers/osgParticle/Program.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +24,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) + I_BaseType(osgParticle::ParticleProcessor); I_BaseType(osgParticle::ParticleProcessor); I_Constructor0(____Program, "", @@ -35,22 +36,108 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) + I_BaseType(osgParticle::ParticleProcessor); + I_BaseType(osgParticle::ParticleProcessor); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); END_REFLECTOR diff --git a/src/osgWrappers/osgParticle/RadialShooter.cpp b/src/osgWrappers/osgParticle/RadialShooter.cpp index ead12af4f..3287d200f 100644 --- a/src/osgWrappers/osgParticle/RadialShooter.cpp +++ b/src/osgWrappers/osgParticle/RadialShooter.cpp @@ -10,12 +10,12 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) + I_BaseType(osgParticle::Shooter); I_BaseType(osgParticle::Shooter); I_Constructor0(____RadialShooter, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __C5_rangef_R1__getThetaRange, @@ -120,7 +121,315 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) "Set the range of possible values for initial rotational speed of particles. ", ""); I_Method1(void, shoot, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__shoot__Particle_P1, + "Shoot a particle. Do not call this method manually. ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osgParticle::rangef &, getThetaRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getThetaRange, + "Get the range of possible values for theta angle. ", + ""); + I_Method1(void, setThetaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setThetaRange__C5_rangef_R1, + "Set the range of possible values for theta angle. ", + ""); + I_Method2(void, setThetaRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setThetaRange__float__float, + "Set the range of possible values for theta angle. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for phi angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for phi angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setPhiRange__float__float, + "Set the range of possible values for phi angle. ", + ""); + I_Method0(const osgParticle::rangef &, getInitialSpeedRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getInitialSpeedRange, + "Get the range of possible values for initial speed of particles. ", + ""); + I_Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInitialSpeedRange__float__float, + "Set the range of possible values for initial speed of particles. ", + ""); + I_Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) + I_BaseType(osgParticle::Shooter); + I_BaseType(osgParticle::Shooter); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osgParticle::rangef &, getThetaRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getThetaRange, + "Get the range of possible values for theta angle. ", + ""); + I_Method1(void, setThetaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setThetaRange__C5_rangef_R1, + "Set the range of possible values for theta angle. ", + ""); + I_Method2(void, setThetaRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setThetaRange__float__float, + "Set the range of possible values for theta angle. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for phi angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for phi angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setPhiRange__float__float, + "Set the range of possible values for phi angle. ", + ""); + I_Method0(const osgParticle::rangef &, getInitialSpeedRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getInitialSpeedRange, + "Get the range of possible values for initial speed of particles. ", + ""); + I_Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInitialSpeedRange__float__float, + "Set the range of possible values for initial speed of particles. ", + ""); + I_Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__shoot__Particle_P1, + "Shoot a particle. Do not call this method manually. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osgParticle::rangef &, getThetaRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getThetaRange, + "Get the range of possible values for theta angle. ", + ""); + I_Method1(void, setThetaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setThetaRange__C5_rangef_R1, + "Set the range of possible values for theta angle. ", + ""); + I_Method2(void, setThetaRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setThetaRange__float__float, + "Set the range of possible values for theta angle. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for phi angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for phi angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setPhiRange__float__float, + "Set the range of possible values for phi angle. ", + ""); + I_Method0(const osgParticle::rangef &, getInitialSpeedRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getInitialSpeedRange, + "Get the range of possible values for initial speed of particles. ", + ""); + I_Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInitialSpeedRange__float__float, + "Set the range of possible values for initial speed of particles. ", + ""); + I_Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, __void__shoot__Particle_P1, "Shoot a particle. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/RandomRateCounter.cpp b/src/osgWrappers/osgParticle/RandomRateCounter.cpp index bc0bfa42f..c0d9f53d4 100644 --- a/src/osgWrappers/osgParticle/RandomRateCounter.cpp +++ b/src/osgWrappers/osgParticle/RandomRateCounter.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) + I_BaseType(osgParticle::VariableRateCounter); I_BaseType(osgParticle::VariableRateCounter); I_Constructor0(____RandomRateCounter, "", @@ -34,13 +35,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -49,15 +50,131 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::NON_VIRTUAL, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) + I_BaseType(osgParticle::VariableRateCounter); + I_BaseType(osgParticle::VariableRateCounter); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::NON_VIRTUAL, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::NON_VIRTUAL, __int__numParticlesToCreate__double, "Return the number of particles to be created in this frame. ", ""); diff --git a/src/osgWrappers/osgParticle/SegmentPlacer.cpp b/src/osgWrappers/osgParticle/SegmentPlacer.cpp index 1954a98f1..8c613cdaa 100644 --- a/src/osgWrappers/osgParticle/SegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/SegmentPlacer.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) + I_BaseType(osgParticle::Placer); I_BaseType(osgParticle::Placer); I_Constructor0(____SegmentPlacer, "", @@ -36,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -51,13 +52,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getVertexA, @@ -94,12 +95,257 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) "Set both vertices. ", ""); I_Method1(void, place, IN, osgParticle::Particle *, P, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__place__Particle_P1, "Place a particle. This method is called by ModularEmitter, do not call it manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getVertexA, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertexA, + "get vertex A. ", + ""); + I_Method1(void, setVertexA, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertexA__float__float__float, + "Set vertex A of the segment as three floats. ", + ""); + I_Method0(const osg::Vec3 &, getVertexB, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertexB, + "get vertex B. ", + ""); + I_Method1(void, setVertexB, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setSegment__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set both vertices. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. This method is called by ModularEmitter, do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) + I_BaseType(osgParticle::Placer); + I_BaseType(osgParticle::Placer); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getVertexA, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertexA, + "get vertex A. ", + ""); + I_Method1(void, setVertexA, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertexA__float__float__float, + "Set vertex A of the segment as three floats. ", + ""); + I_Method0(const osg::Vec3 &, getVertexB, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertexB, + "get vertex B. ", + ""); + I_Method1(void, setVertexB, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setSegment__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set both vertices. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. This method is called by ModularEmitter, do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const osg::Vec3 &, getVertexA, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertexA, + "get vertex A. ", + ""); + I_Method1(void, setVertexA, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setVertexA__float__float__float, + "Set vertex A of the segment as three floats. ", + ""); + I_Method0(const osg::Vec3 &, getVertexB, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getVertexB, + "get vertex B. ", + ""); + I_Method1(void, setVertexB, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setSegment__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "Set both vertices. ", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. This method is called by ModularEmitter, do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgProducer/GNUmakefile b/src/osgWrappers/osgProducer/GNUmakefile index 9881eb18f..817c1bf04 100644 --- a/src/osgWrappers/osgProducer/GNUmakefile +++ b/src/osgWrappers/osgProducer/GNUmakefile @@ -2,13 +2,11 @@ TOPDIR = ../../.. include $(TOPDIR)/Make/makedefs CXXFILES =\ - Export.cpp\ GraphicsContextImplementation.cpp\ KeyboardMouseCallback.cpp\ OsgCameraGroup.cpp\ OsgSceneHandler.cpp\ Viewer.cpp\ - ViewerEventHandler.cpp\ LIBS += -losgProducer -losg -losgIntrospection -losgUtil -losgDB -lProducer -losgGA -losgText $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp b/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp index a81db4fe2..a86cef980 100644 --- a/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp +++ b/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -21,8 +21,212 @@ #undef OUT #endif -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::GraphicsContextImplementation) +BEGIN_OBJECT_REFLECTOR(osgProducer::GraphicsContextImplementation) I_BaseType(osg::GraphicsContext); + I_BaseType(osg::GraphicsContext); + I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + Properties::NON_EXPLICIT, + ____GraphicsContextImplementation__Traits_P1, + "Construct a graphics context to specified traits. ", + ""); + I_Constructor1(IN, Producer::RenderSurface *, rs, + Properties::NON_EXPLICIT, + ____GraphicsContextImplementation__Producer_RenderSurface_P1, + "Construct a graphics context with specified RenderSurface. ", + ""); + I_Method0(Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, + __Producer_RenderSurface_P1__getRenderSurface, + "Return the RenderSurface that implements the graphics context. ", + ""); + I_Method0(const Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, + __C5_Producer_RenderSurface_P1__getRenderSurface, + "Return the const RenderSurface that implements the graphics context. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created - assume success. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realise the GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realised and is ready to use. ", + ""); + I_Method0(void, closeImplementation, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context. ", + ""); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current. ", + ""); + I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__osg_GraphicsContext_P1, + "Make this graphics context current with specified read context. ", + ""); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + Properties::VIRTUAL, + __void__bindPBufferToTextureImplementation__GLenum, + "Bind the graphics context to associated texture. ", + ""); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "swap the front and back buffers. ", + ""); + I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + Properties::NON_EXPLICIT, + ____GraphicsContextImplementation__Traits_P1, + "Construct a graphics context to specified traits. ", + ""); + I_Constructor1(IN, Producer::RenderSurface *, rs, + Properties::NON_EXPLICIT, + ____GraphicsContextImplementation__Producer_RenderSurface_P1, + "Construct a graphics context with specified RenderSurface. ", + ""); + I_Method0(Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, + __Producer_RenderSurface_P1__getRenderSurface, + "Return the RenderSurface that implements the graphics context. ", + ""); + I_Method0(const Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, + __C5_Producer_RenderSurface_P1__getRenderSurface, + "Return the const RenderSurface that implements the graphics context. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created - assume success. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realise the GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realised and is ready to use. ", + ""); + I_Method0(void, closeImplementation, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context. ", + ""); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current. ", + ""); + I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__osg_GraphicsContext_P1, + "Make this graphics context current with specified read context. ", + ""); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + Properties::VIRTUAL, + __void__bindPBufferToTextureImplementation__GLenum, + "Bind the graphics context to associated texture. ", + ""); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "swap the front and back buffers. ", + ""); + I_SimpleProperty(Producer::RenderSurface *, RenderSurface, + __Producer_RenderSurface_P1__getRenderSurface, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgProducer::GraphicsContextImplementation) + I_BaseType(osg::GraphicsContext); + I_BaseType(osg::GraphicsContext); + I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + Properties::NON_EXPLICIT, + ____GraphicsContextImplementation__Traits_P1, + "Construct a graphics context to specified traits. ", + ""); + I_Constructor1(IN, Producer::RenderSurface *, rs, + Properties::NON_EXPLICIT, + ____GraphicsContextImplementation__Producer_RenderSurface_P1, + "Construct a graphics context with specified RenderSurface. ", + ""); + I_Method0(Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, + __Producer_RenderSurface_P1__getRenderSurface, + "Return the RenderSurface that implements the graphics context. ", + ""); + I_Method0(const Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, + __C5_Producer_RenderSurface_P1__getRenderSurface, + "Return the const RenderSurface that implements the graphics context. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created - assume success. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realise the GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realised and is ready to use. ", + ""); + I_Method0(void, closeImplementation, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context. ", + ""); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current. ", + ""); + I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__osg_GraphicsContext_P1, + "Make this graphics context current with specified read context. ", + ""); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + Properties::VIRTUAL, + __void__bindPBufferToTextureImplementation__GLenum, + "Bind the graphics context to associated texture. ", + ""); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "swap the front and back buffers. ", + ""); I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, Properties::NON_EXPLICIT, ____GraphicsContextImplementation__Traits_P1, diff --git a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp index 563132a12..571fe6cc6 100644 --- a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp +++ b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp @@ -12,6 +12,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -179,6 +180,485 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::KeyboardMouseCallback) __void__updateWindowSize, "", ""); + 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, + Properties::VIRTUAL, + __void__mouseScroll__Producer_KeyboardMouseCallback_ScrollingMotion, + "", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__mouseScroll2D__float__float, + "", + ""); + I_Method1(void, penPressure, IN, float, pressure, + Properties::VIRTUAL, + __void__penPressure__float, + "", + ""); + I_Method2(void, penProximity, IN, Producer::KeyboardMouseCallback::TabletPointerType, x, IN, bool, x, + Properties::VIRTUAL, + __void__penProximity__Producer_KeyboardMouseCallback_TabletPointerType__bool, + "", + ""); + I_Method2(void, mouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__mouseMotion__float__float, + "", + ""); + I_Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__passiveMouseMotion__float__float, + "", + ""); + I_Method2(void, mouseWarp, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__mouseWarp__float__float, + "", + ""); + I_Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__buttonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__doubleButtonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__buttonRelease__float__float__unsigned_int, + "", + ""); + I_Method1(void, keyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__keyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, keyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__keyRelease__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__specialKeyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__specialKeyRelease__Producer_KeyCharacter, + "", + ""); + I_Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, + __void__windowConfig__int__int__unsigned_int__unsigned_int, + "", + ""); + I_Method0(void, shutdown, + Properties::VIRTUAL, + __void__shutdown, + "", + ""); + I_Method1(void, setEscapeSetDone, IN, bool, esc, + Properties::NON_VIRTUAL, + __void__setEscapeSetDone__bool, + "", + ""); + I_Method0(bool, getEscapeSetDone, + Properties::NON_VIRTUAL, + __bool__getEscapeSetDone, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(bool, takeEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __bool__takeEventQueue__EventQueue_R1, + "", + ""); + I_Method1(bool, copyEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __bool__copyEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, setEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __void__setEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, appendEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __void__appendEventQueue__EventQueue_R1, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEventAdapter, + Properties::NON_VIRTUAL, + __osgGA_GUIEventAdapter_P1__createEventAdapter, + "", + ""); + I_Method0(void, updateWindowSize, + Properties::NON_VIRTUAL, + __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 + +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, + ____KeyboardMouseCallback__Producer_KeyboardMouse_P1__bool_R1__bool, + "", + ""); + I_Method1(void, mouseScroll, IN, Producer::KeyboardMouseCallback::ScrollingMotion, sm, + Properties::VIRTUAL, + __void__mouseScroll__Producer_KeyboardMouseCallback_ScrollingMotion, + "", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__mouseScroll2D__float__float, + "", + ""); + I_Method1(void, penPressure, IN, float, pressure, + Properties::VIRTUAL, + __void__penPressure__float, + "", + ""); + I_Method2(void, penProximity, IN, Producer::KeyboardMouseCallback::TabletPointerType, x, IN, bool, x, + Properties::VIRTUAL, + __void__penProximity__Producer_KeyboardMouseCallback_TabletPointerType__bool, + "", + ""); + I_Method2(void, mouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__mouseMotion__float__float, + "", + ""); + I_Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__passiveMouseMotion__float__float, + "", + ""); + I_Method2(void, mouseWarp, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__mouseWarp__float__float, + "", + ""); + I_Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__buttonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__doubleButtonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__buttonRelease__float__float__unsigned_int, + "", + ""); + I_Method1(void, keyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__keyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, keyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__keyRelease__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__specialKeyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__specialKeyRelease__Producer_KeyCharacter, + "", + ""); + I_Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, + __void__windowConfig__int__int__unsigned_int__unsigned_int, + "", + ""); + I_Method0(void, shutdown, + Properties::VIRTUAL, + __void__shutdown, + "", + ""); + I_Method1(void, setEscapeSetDone, IN, bool, esc, + Properties::NON_VIRTUAL, + __void__setEscapeSetDone__bool, + "", + ""); + I_Method0(bool, getEscapeSetDone, + Properties::NON_VIRTUAL, + __bool__getEscapeSetDone, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(bool, takeEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __bool__takeEventQueue__EventQueue_R1, + "", + ""); + I_Method1(bool, copyEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __bool__copyEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, setEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __void__setEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, appendEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __void__appendEventQueue__EventQueue_R1, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEventAdapter, + Properties::NON_VIRTUAL, + __osgGA_GUIEventAdapter_P1__createEventAdapter, + "", + ""); + I_Method0(void, updateWindowSize, + Properties::NON_VIRTUAL, + __void__updateWindowSize, + "", + ""); + 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, + Properties::VIRTUAL, + __void__mouseScroll__Producer_KeyboardMouseCallback_ScrollingMotion, + "", + ""); + I_Method2(void, mouseScroll2D, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__mouseScroll2D__float__float, + "", + ""); + I_Method1(void, penPressure, IN, float, pressure, + Properties::VIRTUAL, + __void__penPressure__float, + "", + ""); + I_Method2(void, penProximity, IN, Producer::KeyboardMouseCallback::TabletPointerType, x, IN, bool, x, + Properties::VIRTUAL, + __void__penProximity__Producer_KeyboardMouseCallback_TabletPointerType__bool, + "", + ""); + I_Method2(void, mouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__mouseMotion__float__float, + "", + ""); + I_Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__passiveMouseMotion__float__float, + "", + ""); + I_Method2(void, mouseWarp, IN, float, mx, IN, float, my, + Properties::VIRTUAL, + __void__mouseWarp__float__float, + "", + ""); + I_Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__buttonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__doubleButtonPress__float__float__unsigned_int, + "", + ""); + I_Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, + __void__buttonRelease__float__float__unsigned_int, + "", + ""); + I_Method1(void, keyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__keyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, keyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__keyRelease__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__specialKeyPress__Producer_KeyCharacter, + "", + ""); + I_Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, + __void__specialKeyRelease__Producer_KeyCharacter, + "", + ""); + I_Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, + __void__windowConfig__int__int__unsigned_int__unsigned_int, + "", + ""); + I_Method0(void, shutdown, + Properties::VIRTUAL, + __void__shutdown, + "", + ""); + I_Method1(void, setEscapeSetDone, IN, bool, esc, + Properties::NON_VIRTUAL, + __void__setEscapeSetDone__bool, + "", + ""); + I_Method0(bool, getEscapeSetDone, + Properties::NON_VIRTUAL, + __bool__getEscapeSetDone, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(bool, takeEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __bool__takeEventQueue__EventQueue_R1, + "", + ""); + I_Method1(bool, copyEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __bool__copyEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, setEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __void__setEventQueue__EventQueue_R1, + "", + ""); + I_Method1(void, appendEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, + __void__appendEventQueue__EventQueue_R1, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method0(double, getTime, + Properties::NON_VIRTUAL, + __double__getTime, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, createEventAdapter, + Properties::NON_VIRTUAL, + __osgGA_GUIEventAdapter_P1__createEventAdapter, + "", + ""); + I_Method0(void, updateWindowSize, + Properties::NON_VIRTUAL, + __void__updateWindowSize, + "", + ""); I_SimpleProperty(bool, EscapeSetDone, __bool__getEscapeSetDone, __void__setEscapeSetDone__bool); diff --git a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp index b3c5d41c6..a71abfbbe 100644 --- a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp +++ b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp @@ -10,20 +10,20 @@ #include #include +#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include #include -#include -#include -#include -#include -#include -#include +#include #include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -303,6 +303,855 @@ BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup) __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_Constructor0(____OsgCameraGroup, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__osg_ArgumentParser_R1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList, + Properties::NON_VIRTUAL, + __void__setGraphicsContextList__GraphicsContextList_R1, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, + __GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, + __C5_GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, + __SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, + __C5_SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, scene, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setSceneDecorator, IN, osg::Group *, decorator, + Properties::NON_VIRTUAL, + __void__setSceneDecorator__osg_Group_P1, + "", + ""); + I_Method0(osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, + __osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(const osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, + __C5_osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(const osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(void, updatedSceneData, + Properties::VIRTUAL, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method1(void, setCullSettings, IN, const osg::CullSettings &, cs, + Properties::NON_VIRTUAL, + __void__setCullSettings__C5_osg_CullSettings_R1, + "", + ""); + I_Method0(osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, + __osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method0(const osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, + __C5_osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset, + Properties::NON_VIRTUAL, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "", + ""); + I_Method1(void, setLODScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setLODScale__float, + "", + ""); + I_Method0(float, getLODScale, + Properties::NON_VIRTUAL, + __float__getLODScale, + "", + ""); + I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + Properties::NON_VIRTUAL, + __void__setFusionDistance__osgUtil_SceneView_FusionDistanceMode__float, + "", + ""); + I_Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options, + Properties::NON_VIRTUAL, + __void__setRealizeSceneViewOptions__unsigned_int, + "Set the options to set up SceneView with, see osgUtil::SceneView::Options for available options. ", + ""); + I_Method0(unsigned int, getRealizeSceneViewOptions, + Properties::NON_VIRTUAL, + __unsigned_int__getRealizeSceneViewOptions, + "Get the options to set up SceneView with. ", + ""); + I_Method1(void, setEnableProcessorAffinityHint, IN, bool, enableProccessAffinityHint, + Properties::NON_VIRTUAL, + __void__setEnableProcessorAffinityHint__bool, + "Set whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method0(bool, getEnableProcessorAffinityHint, + Properties::NON_VIRTUAL, + __bool__getEnableProcessorAffinityHint, + "Get whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb, + Properties::NON_VIRTUAL, + __void__setRealizeCallback__RealizeCallback_P1, + "Set the realize callback to use when once the render surfaces are realized. ", + ""); + I_Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, + __RealizeCallback_P1__getRealizeCallback, + "Get the realize callback. ", + ""); + I_Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, + __C5_RealizeCallback_P1__getRealizeCallback, + "Get the const realize callback. ", + ""); + I_Method0(void, advance, + Properties::NON_VIRTUAL, + __void__advance, + "", + ""); + I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + Properties::VIRTUAL, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd__getViewMatrix, + "Get the model view martrix of the camera group, taking its value for camera 0. ", + ""); + I_Method0(void, sync, + Properties::VIRTUAL, + __void__sync, + "", + ""); + I_Method0(void, frame, + Properties::VIRTUAL, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, cleanup_frame, + Properties::VIRTUAL, + __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 + +TYPE_NAME_ALIAS(Producer::CameraGroup::ThreadModel, osgProducer::OsgCameraGroup::ThreadingModel); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgProducer::GraphicsContextImplementation > >, osgProducer::OsgCameraGroup::GraphicsContextList); + +TYPE_NAME_ALIAS(std::vector< Producer::ref_ptr< osgProducer::OsgSceneHandler > >, osgProducer::OsgCameraGroup::SceneHandlerList); + +BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup) + I_Constructor0(____OsgCameraGroup, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__osg_ArgumentParser_R1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList, + Properties::NON_VIRTUAL, + __void__setGraphicsContextList__GraphicsContextList_R1, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, + __GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, + __C5_GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, + __SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, + __C5_SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, scene, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setSceneDecorator, IN, osg::Group *, decorator, + Properties::NON_VIRTUAL, + __void__setSceneDecorator__osg_Group_P1, + "", + ""); + I_Method0(osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, + __osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(const osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, + __C5_osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(const osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(void, updatedSceneData, + Properties::VIRTUAL, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method1(void, setCullSettings, IN, const osg::CullSettings &, cs, + Properties::NON_VIRTUAL, + __void__setCullSettings__C5_osg_CullSettings_R1, + "", + ""); + I_Method0(osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, + __osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method0(const osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, + __C5_osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset, + Properties::NON_VIRTUAL, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "", + ""); + I_Method1(void, setLODScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setLODScale__float, + "", + ""); + I_Method0(float, getLODScale, + Properties::NON_VIRTUAL, + __float__getLODScale, + "", + ""); + I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + Properties::NON_VIRTUAL, + __void__setFusionDistance__osgUtil_SceneView_FusionDistanceMode__float, + "", + ""); + I_Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options, + Properties::NON_VIRTUAL, + __void__setRealizeSceneViewOptions__unsigned_int, + "Set the options to set up SceneView with, see osgUtil::SceneView::Options for available options. ", + ""); + I_Method0(unsigned int, getRealizeSceneViewOptions, + Properties::NON_VIRTUAL, + __unsigned_int__getRealizeSceneViewOptions, + "Get the options to set up SceneView with. ", + ""); + I_Method1(void, setEnableProcessorAffinityHint, IN, bool, enableProccessAffinityHint, + Properties::NON_VIRTUAL, + __void__setEnableProcessorAffinityHint__bool, + "Set whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method0(bool, getEnableProcessorAffinityHint, + Properties::NON_VIRTUAL, + __bool__getEnableProcessorAffinityHint, + "Get whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb, + Properties::NON_VIRTUAL, + __void__setRealizeCallback__RealizeCallback_P1, + "Set the realize callback to use when once the render surfaces are realized. ", + ""); + I_Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, + __RealizeCallback_P1__getRealizeCallback, + "Get the realize callback. ", + ""); + I_Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, + __C5_RealizeCallback_P1__getRealizeCallback, + "Get the const realize callback. ", + ""); + I_Method0(void, advance, + Properties::NON_VIRTUAL, + __void__advance, + "", + ""); + I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + Properties::VIRTUAL, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd__getViewMatrix, + "Get the model view martrix of the camera group, taking its value for camera 0. ", + ""); + I_Method0(void, sync, + Properties::VIRTUAL, + __void__sync, + "", + ""); + I_Method0(void, frame, + Properties::VIRTUAL, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, cleanup_frame, + Properties::VIRTUAL, + __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_Constructor0(____OsgCameraGroup, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____OsgCameraGroup__osg_ArgumentParser_R1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList, + Properties::NON_VIRTUAL, + __void__setGraphicsContextList__GraphicsContextList_R1, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, + __GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, + __C5_GraphicsContextList_R1__getGraphicsContextList, + "", + ""); + I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, + __SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, + __C5_SceneHandlerList_R1__getSceneHandlerList, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, scene, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setSceneDecorator, IN, osg::Group *, decorator, + Properties::NON_VIRTUAL, + __void__setSceneDecorator__osg_Group_P1, + "", + ""); + I_Method0(osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, + __osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(const osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, + __C5_osg_Group_P1__getSceneDecorator, + "", + ""); + I_Method0(osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(const osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getTopMostSceneData, + "", + ""); + I_Method0(void, updatedSceneData, + Properties::VIRTUAL, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "", + ""); + I_Method1(void, setCullSettings, IN, const osg::CullSettings &, cs, + Properties::NON_VIRTUAL, + __void__setCullSettings__C5_osg_CullSettings_R1, + "", + ""); + I_Method0(osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, + __osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method0(const osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, + __C5_osg_CullSettings_R1__getCullSettings, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset, + Properties::NON_VIRTUAL, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "", + ""); + I_Method1(void, setLODScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setLODScale__float, + "", + ""); + I_Method0(float, getLODScale, + Properties::NON_VIRTUAL, + __float__getLODScale, + "", + ""); + I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + Properties::NON_VIRTUAL, + __void__setFusionDistance__osgUtil_SceneView_FusionDistanceMode__float, + "", + ""); + I_Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options, + Properties::NON_VIRTUAL, + __void__setRealizeSceneViewOptions__unsigned_int, + "Set the options to set up SceneView with, see osgUtil::SceneView::Options for available options. ", + ""); + I_Method0(unsigned int, getRealizeSceneViewOptions, + Properties::NON_VIRTUAL, + __unsigned_int__getRealizeSceneViewOptions, + "Get the options to set up SceneView with. ", + ""); + I_Method1(void, setEnableProcessorAffinityHint, IN, bool, enableProccessAffinityHint, + Properties::NON_VIRTUAL, + __void__setEnableProcessorAffinityHint__bool, + "Set whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method0(bool, getEnableProcessorAffinityHint, + Properties::NON_VIRTUAL, + __bool__getEnableProcessorAffinityHint, + "Get whether processor affinity should be enable where supported by hardware. ", + ""); + I_Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb, + Properties::NON_VIRTUAL, + __void__setRealizeCallback__RealizeCallback_P1, + "Set the realize callback to use when once the render surfaces are realized. ", + ""); + I_Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, + __RealizeCallback_P1__getRealizeCallback, + "Get the realize callback. ", + ""); + I_Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, + __C5_RealizeCallback_P1__getRealizeCallback, + "Get the const realize callback. ", + ""); + I_Method0(void, advance, + Properties::NON_VIRTUAL, + __void__advance, + "", + ""); + I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + Properties::VIRTUAL, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd__getViewMatrix, + "Get the model view martrix of the camera group, taking its value for camera 0. ", + ""); + I_Method0(void, sync, + Properties::VIRTUAL, + __void__sync, + "", + ""); + I_Method0(void, frame, + Properties::VIRTUAL, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, cleanup_frame, + Properties::VIRTUAL, + __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); @@ -357,52 +1206,18 @@ BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgCameraGroup::RealizeCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____RealizeCallback, "", ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::GraphicsContextImplementation >) - I_Constructor0(____ref_ptr, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgCameraGroup::RealizeCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____RealizeCallback, "", ""); - I_Constructor1(IN, osgProducer::GraphicsContextImplementation *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgProducer::GraphicsContextImplementation *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgProducer::GraphicsContextImplementation *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp, - Properties::NON_VIRTUAL, - __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 > >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgProducer::GraphicsContextImplementation > >); - diff --git a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp index fc42b2e67..9c1cfc38b 100644 --- a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp +++ b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp @@ -10,10 +10,10 @@ #include #include -#include +#include #include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -164,6 +164,453 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) __bool__getCleanUpOnNextFrame, "", ""); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, + ____OsgSceneHandler__osg_DisplaySettings_P1, + "", + ""); + I_Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView, + Properties::NON_VIRTUAL, + __void__setSceneView__osgUtil_SceneView_P1, + "set the scene view to which will manage rendering of the OSG scene. ", + ""); + I_Method0(osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView, + "get the scene view. ", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __C5_osgUtil_SceneView_P1__getSceneView, + "get the const scene view. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "override the init method to force it be run one at a time. ", + ""); + I_Method1(void, clear, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__clear__Producer_Camera_R1, + "", + ""); + I_Method1(void, clearImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__clearImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setClearCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getClearCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getClearCallback, + "", + ""); + I_Method1(void, cull, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__cull__Producer_Camera_R1, + "", + ""); + I_Method1(void, cullImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__cullImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setCullCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getCullCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getCullCallback, + "", + ""); + I_Method1(void, draw, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__draw__Producer_Camera_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__drawImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setDrawCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getDrawCallback, + "", + ""); + I_Method1(void, setCollectStats, IN, bool, collectStats, + Properties::NON_VIRTUAL, + __void__setCollectStats__bool, + "", + ""); + I_Method0(bool, getCollectStats, + Properties::NON_VIRTUAL, + __bool__getCollectStats, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, + __bool__getStats__osgUtil_Statistics_R1, + "", + ""); + I_Method1(void, setContextID, IN, int, id, + Properties::NON_VIRTUAL, + __void__setContextID__int, + "", + ""); + I_Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFlushOfAllDeletedGLObjectsOnNextFrame__bool, + "", + ""); + I_Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame, + Properties::NON_VIRTUAL, + __bool__getFlushOfAllDeletedGLObjectsOnNextFrame, + "", + ""); + I_Method1(void, setCleanUpOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCleanUpOnNextFrame__bool, + "", + ""); + I_Method0(bool, getCleanUpOnNextFrame, + Properties::NON_VIRTUAL, + __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_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, + ____OsgSceneHandler__osg_DisplaySettings_P1, + "", + ""); + I_Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView, + Properties::NON_VIRTUAL, + __void__setSceneView__osgUtil_SceneView_P1, + "set the scene view to which will manage rendering of the OSG scene. ", + ""); + I_Method0(osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView, + "get the scene view. ", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __C5_osgUtil_SceneView_P1__getSceneView, + "get the const scene view. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "override the init method to force it be run one at a time. ", + ""); + I_Method1(void, clear, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__clear__Producer_Camera_R1, + "", + ""); + I_Method1(void, clearImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__clearImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setClearCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getClearCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getClearCallback, + "", + ""); + I_Method1(void, cull, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__cull__Producer_Camera_R1, + "", + ""); + I_Method1(void, cullImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__cullImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setCullCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getCullCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getCullCallback, + "", + ""); + I_Method1(void, draw, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__draw__Producer_Camera_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__drawImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setDrawCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getDrawCallback, + "", + ""); + I_Method1(void, setCollectStats, IN, bool, collectStats, + Properties::NON_VIRTUAL, + __void__setCollectStats__bool, + "", + ""); + I_Method0(bool, getCollectStats, + Properties::NON_VIRTUAL, + __bool__getCollectStats, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, + __bool__getStats__osgUtil_Statistics_R1, + "", + ""); + I_Method1(void, setContextID, IN, int, id, + Properties::NON_VIRTUAL, + __void__setContextID__int, + "", + ""); + I_Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFlushOfAllDeletedGLObjectsOnNextFrame__bool, + "", + ""); + I_Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame, + Properties::NON_VIRTUAL, + __bool__getFlushOfAllDeletedGLObjectsOnNextFrame, + "", + ""); + I_Method1(void, setCleanUpOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCleanUpOnNextFrame__bool, + "", + ""); + I_Method0(bool, getCleanUpOnNextFrame, + Properties::NON_VIRTUAL, + __bool__getCleanUpOnNextFrame, + "", + ""); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, + ____OsgSceneHandler__osg_DisplaySettings_P1, + "", + ""); + I_Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView, + Properties::NON_VIRTUAL, + __void__setSceneView__osgUtil_SceneView_P1, + "set the scene view to which will manage rendering of the OSG scene. ", + ""); + I_Method0(osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView, + "get the scene view. ", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __C5_osgUtil_SceneView_P1__getSceneView, + "get the const scene view. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "override the init method to force it be run one at a time. ", + ""); + I_Method1(void, clear, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__clear__Producer_Camera_R1, + "", + ""); + I_Method1(void, clearImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__clearImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setClearCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getClearCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getClearCallback, + "", + ""); + I_Method1(void, cull, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__cull__Producer_Camera_R1, + "", + ""); + I_Method1(void, cullImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__cullImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setCullCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getCullCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getCullCallback, + "", + ""); + I_Method1(void, draw, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__draw__Producer_Camera_R1, + "", + ""); + I_Method1(void, drawImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, + __void__drawImplementation__Producer_Camera_R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setDrawCallback__Callback_P1, + "", + ""); + I_Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getDrawCallback, + "", + ""); + I_Method1(void, setCollectStats, IN, bool, collectStats, + Properties::NON_VIRTUAL, + __void__setCollectStats__bool, + "", + ""); + I_Method0(bool, getCollectStats, + Properties::NON_VIRTUAL, + __bool__getCollectStats, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, + __bool__getStats__osgUtil_Statistics_R1, + "", + ""); + I_Method1(void, setContextID, IN, int, id, + Properties::NON_VIRTUAL, + __void__setContextID__int, + "", + ""); + I_Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setFlushOfAllDeletedGLObjectsOnNextFrame__bool, + "", + ""); + I_Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame, + Properties::NON_VIRTUAL, + __bool__getFlushOfAllDeletedGLObjectsOnNextFrame, + "", + ""); + I_Method1(void, setCleanUpOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCleanUpOnNextFrame__bool, + "", + ""); + I_Method0(bool, getCleanUpOnNextFrame, + Properties::NON_VIRTUAL, + __bool__getCleanUpOnNextFrame, + "", + ""); I_SimpleProperty(bool, CleanUpOnNextFrame, __bool__getCleanUpOnNextFrame, __void__setCleanUpOnNextFrame__bool); @@ -191,6 +638,15 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler::Callback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____Callback, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler::Callback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____Callback, "", diff --git a/src/osgWrappers/osgProducer/Viewer.cpp b/src/osgWrappers/osgProducer/Viewer.cpp index c1b04d3fb..975a535f5 100644 --- a/src/osgWrappers/osgProducer/Viewer.cpp +++ b/src/osgWrappers/osgProducer/Viewer.cpp @@ -10,22 +10,22 @@ #include #include +#include +#include +#include #include #include #include -#include -#include #include -#include #include #include -#include #include #include +#include +#include #include -#include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -54,6 +54,8 @@ BEGIN_ENUM_REFLECTOR(osgProducer::Viewer::ViewerOptions) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) + I_BaseType(osgProducer::OsgCameraGroup); + I_BaseType(osgGA::GUIActionAdapter); I_BaseType(osgProducer::OsgCameraGroup); I_BaseType(osgGA::GUIActionAdapter); I_Constructor0(____Viewer, @@ -167,7 +169,7 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) I_Method0(bool, realize, Properties::VIRTUAL, __bool__realize, - "Realize the render surfaces (OpenGL graphics) and various threads, and call any realize callbacks. ", + "", ""); I_Method0(void, update, Properties::VIRTUAL, @@ -227,18 +229,371 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) I_Method0(void, requestRedraw, Properties::VIRTUAL, __void__requestRedraw, - "requestRedraw() requests a single redraw. ", + "", ""); I_Method1(void, requestContinuousUpdate, IN, bool, x, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "Set the EventQueue - a thread safe queue for registering events. ", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "Get the EventQueue. ", + ""); + I_Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm, + Properties::NON_VIRTUAL, + __void__setKeyboardMouse__Producer_KeyboardMouse_P1, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb, + Properties::NON_VIRTUAL, + __void__setKeyboardMouseCallback__osgProducer_KeyboardMouseCallback_P1, + "", + ""); + I_Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, + __osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, + __C5_osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, + __EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, + __C5_EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, + __osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, + __unsigned_int__addCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method1(void, selectCameraManipulator, IN, unsigned int, no, + Properties::NON_VIRTUAL, + __void__selectCameraManipulator__unsigned_int, + "", + ""); + I_Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList, + Properties::NON_VIRTUAL, + __void__getCameraManipulatorNameList__std_listT1_std_string__R1, + "", + ""); + I_Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __bool__selectCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(void, setRecordingAnimationPath, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setRecordingAnimationPath__bool, + "", + ""); + I_Method0(bool, getRecordingAnimationPath, + Properties::NON_VIRTUAL, + __bool__getRecordingAnimationPath, + "", + ""); + I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + Properties::NON_VIRTUAL, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const double *, getPosition, + Properties::NON_VIRTUAL, + __C5_double_P1__getPosition, + "", + ""); + I_Method0(double, getSpeed, + Properties::NON_VIRTUAL, + __double__getSpeed, + "", + ""); + I_Method0(osg::Quat, getOrientation, + Properties::NON_VIRTUAL, + __osg_Quat__getOrientation, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_Method0(void, updatedSceneData, + Properties::VIRTUAL, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method0(void, cleanup_frame, + Properties::VIRTUAL, + __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_Constructor0(____Viewer, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, + ____Viewer__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, + ____Viewer__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____Viewer__osg_ArgumentParser_R1, + "", + ""); + I_MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __double__getDoneAtElapsedTime, + "Get the elapsed time that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setDoneAtElapsedTimeEnabled__bool, + "Set whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtElapsedTimeEnabled, + Properties::NON_VIRTUAL, + __bool__getDoneAtElapsedTimeEnabled, + "Get whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getDoneAtFrameNumber, + "Get the frame number that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setDoneAtFrameNumberEnabled__bool, + "Set whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtFrameNumberEnabled, + Properties::NON_VIRTUAL, + __bool__getDoneAtFrameNumberEnabled, + "Get whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "Set the done flag signalling that the viewer exit. ", + ""); + I_Method0(bool, getDone, + Properties::NON_VIRTUAL, + __bool__getDone, + "Get the done flag which signals that the viewer exit. ", + ""); + I_Method0(bool, done, + Properties::VIRTUAL, + __bool__done, + "Return true if the application is done and should exit. ", + ""); + I_Method1(void, setWriteImageWhenDone, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setWriteImageWhenDone__bool, + "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method0(bool, getWriteImageWhenDone, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + Properties::VIRTUAL, + __bool__realize, + "", + ""); + I_Method0(void, update, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getUpdateVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "Get the const update visitor. ", + ""); + I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osgGA_EventVisitor_P1__getEventVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __C5_osgGA_EventVisitor_P1__getEventVisitor, + "Get the const update visitor. ", + ""); + I_Method0(void, computeActiveCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __void__computeActiveCoordinateSystemNodePath, + "", + ""); + I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method0(osg::NodePath, getCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath__getCoordinateSystemNodePath, + "", + ""); + I_Method0(void, frame, + Properties::VIRTUAL, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_Method1(void, requestContinuousUpdate, IN, bool, x, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); I_Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y, Properties::NON_VIRTUAL, __bool__computePixelCoords__float__float__unsigned_int__float_R1__float_R1, @@ -413,6 +768,10 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) __C5_char_P1__getDefaultImageFileName_S, "Get the default filename for writing an image snapshot. ", ""); + 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); @@ -481,46 +840,810 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) __void__setWriteImageWhenDone__bool); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgGA::GUIEventHandler *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgGA::GUIEventHandler *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgGA::GUIEventHandler *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventHandler > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, - "", - ""); - I_SimpleProperty(osgGA::GUIEventHandler *, , - __T_P1__get, - 0); +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgProducer::Viewer::EventHandlerList); + +BEGIN_ENUM_REFLECTOR(osgProducer::Viewer::ViewerOptions) + I_EnumLabel(osgProducer::Viewer::NO_EVENT_HANDLERS); + I_EnumLabel(osgProducer::Viewer::TRACKBALL_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::DRIVE_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::FLIGHT_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::TERRAIN_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::UFO_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::STATE_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::HEAD_LIGHT_SOURCE); + I_EnumLabel(osgProducer::Viewer::SKY_LIGHT_SOURCE); + I_EnumLabel(osgProducer::Viewer::STATS_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::VIEWER_MANIPULATOR); + I_EnumLabel(osgProducer::Viewer::ESCAPE_SETS_DONE); + I_EnumLabel(osgProducer::Viewer::STANDARD_SETTINGS); END_REFLECTOR -STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >); +BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) + I_BaseType(osgProducer::OsgCameraGroup); + I_BaseType(osgGA::GUIActionAdapter); + I_BaseType(osgProducer::OsgCameraGroup); + I_BaseType(osgGA::GUIActionAdapter); + I_Constructor0(____Viewer, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, + ____Viewer__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, + ____Viewer__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____Viewer__osg_ArgumentParser_R1, + "", + ""); + I_MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __double__getDoneAtElapsedTime, + "Get the elapsed time that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setDoneAtElapsedTimeEnabled__bool, + "Set whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtElapsedTimeEnabled, + Properties::NON_VIRTUAL, + __bool__getDoneAtElapsedTimeEnabled, + "Get whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getDoneAtFrameNumber, + "Get the frame number that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setDoneAtFrameNumberEnabled__bool, + "Set whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtFrameNumberEnabled, + Properties::NON_VIRTUAL, + __bool__getDoneAtFrameNumberEnabled, + "Get whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "Set the done flag signalling that the viewer exit. ", + ""); + I_Method0(bool, getDone, + Properties::NON_VIRTUAL, + __bool__getDone, + "Get the done flag which signals that the viewer exit. ", + ""); + I_Method0(bool, done, + Properties::VIRTUAL, + __bool__done, + "Return true if the application is done and should exit. ", + ""); + I_Method1(void, setWriteImageWhenDone, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setWriteImageWhenDone__bool, + "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method0(bool, getWriteImageWhenDone, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + Properties::VIRTUAL, + __bool__realize, + "", + ""); + I_Method0(void, update, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getUpdateVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "Get the const update visitor. ", + ""); + I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osgGA_EventVisitor_P1__getEventVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __C5_osgGA_EventVisitor_P1__getEventVisitor, + "Get the const update visitor. ", + ""); + I_Method0(void, computeActiveCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __void__computeActiveCoordinateSystemNodePath, + "", + ""); + I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method0(osg::NodePath, getCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath__getCoordinateSystemNodePath, + "", + ""); + I_Method0(void, frame, + Properties::VIRTUAL, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_Method1(void, requestContinuousUpdate, IN, bool, x, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); + I_Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "Set the EventQueue - a thread safe queue for registering events. ", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "Get the EventQueue. ", + ""); + I_Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm, + Properties::NON_VIRTUAL, + __void__setKeyboardMouse__Producer_KeyboardMouse_P1, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb, + Properties::NON_VIRTUAL, + __void__setKeyboardMouseCallback__osgProducer_KeyboardMouseCallback_P1, + "", + ""); + I_Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, + __osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, + __C5_osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, + __EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, + __C5_EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, + __osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, + __unsigned_int__addCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method1(void, selectCameraManipulator, IN, unsigned int, no, + Properties::NON_VIRTUAL, + __void__selectCameraManipulator__unsigned_int, + "", + ""); + I_Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList, + Properties::NON_VIRTUAL, + __void__getCameraManipulatorNameList__std_listT1_std_string__R1, + "", + ""); + I_Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __bool__selectCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(void, setRecordingAnimationPath, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setRecordingAnimationPath__bool, + "", + ""); + I_Method0(bool, getRecordingAnimationPath, + Properties::NON_VIRTUAL, + __bool__getRecordingAnimationPath, + "", + ""); + I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + Properties::NON_VIRTUAL, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const double *, getPosition, + Properties::NON_VIRTUAL, + __C5_double_P1__getPosition, + "", + ""); + I_Method0(double, getSpeed, + Properties::NON_VIRTUAL, + __double__getSpeed, + "", + ""); + I_Method0(osg::Quat, getOrientation, + Properties::NON_VIRTUAL, + __osg_Quat__getOrientation, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_Method0(void, updatedSceneData, + Properties::VIRTUAL, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method0(void, cleanup_frame, + Properties::VIRTUAL, + __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_Constructor0(____Viewer, + "", + ""); + I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, + ____Viewer__Producer_CameraConfig_P1, + "", + ""); + I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, + ____Viewer__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____Viewer__osg_ArgumentParser_R1, + "", + ""); + I_MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __double__getDoneAtElapsedTime, + "Get the elapsed time that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setDoneAtElapsedTimeEnabled__bool, + "Set whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtElapsedTimeEnabled, + Properties::NON_VIRTUAL, + __bool__getDoneAtElapsedTimeEnabled, + "Get whether to use a elapsed time to limit the run of the viewer. ", + ""); + I_Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getDoneAtFrameNumber, + "Get the frame number that will cause done to be set to be true. ", + ""); + I_Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setDoneAtFrameNumberEnabled__bool, + "Set whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method0(bool, getDoneAtFrameNumberEnabled, + Properties::NON_VIRTUAL, + __bool__getDoneAtFrameNumberEnabled, + "Get whether to use a frame number to limit the run of the viewer. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "Set the done flag signalling that the viewer exit. ", + ""); + I_Method0(bool, getDone, + Properties::NON_VIRTUAL, + __bool__getDone, + "Get the done flag which signals that the viewer exit. ", + ""); + I_Method0(bool, done, + Properties::VIRTUAL, + __bool__done, + "Return true if the application is done and should exit. ", + ""); + I_Method1(void, setWriteImageWhenDone, IN, bool, enabled, + Properties::NON_VIRTUAL, + __void__setWriteImageWhenDone__bool, + "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", + ""); + I_Method0(bool, getWriteImageWhenDone, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__realize__ThreadingModel, + "Set the threading model and then call realize(). ", + ""); + I_Method0(bool, realize, + Properties::VIRTUAL, + __bool__realize, + "", + ""); + I_Method0(void, update, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getUpdateVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "Get the const update visitor. ", + ""); + I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osgGA_EventVisitor_P1__getEventVisitor, + "Get the update visitor. ", + ""); + I_Method0(const osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __C5_osgGA_EventVisitor_P1__getEventVisitor, + "Get the const update visitor. ", + ""); + I_Method0(void, computeActiveCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __void__computeActiveCoordinateSystemNodePath, + "", + ""); + I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1, + "", + ""); + I_Method0(osg::NodePath, getCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath__getCoordinateSystemNodePath, + "", + ""); + I_Method0(void, frame, + Properties::VIRTUAL, + __void__frame, + "Dispatch the cull and draw for each of the Camera's for this frame. ", + ""); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_Method1(void, requestContinuousUpdate, IN, bool, x, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); + I_Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "Set the EventQueue - a thread safe queue for registering events. ", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "Get the EventQueue. ", + ""); + I_Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm, + Properties::NON_VIRTUAL, + __void__setKeyboardMouse__Producer_KeyboardMouse_P1, + "", + ""); + I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, + __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, + "", + ""); + I_Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb, + Properties::NON_VIRTUAL, + __void__setKeyboardMouseCallback__osgProducer_KeyboardMouseCallback_P1, + "", + ""); + I_Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, + __osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, + __C5_osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, + "", + ""); + I_Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, + __EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, + __C5_EventHandlerList_R1__getEventHandlerList, + "", + ""); + I_Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, + __osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, + "", + ""); + I_Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, + __unsigned_int__addCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method1(void, selectCameraManipulator, IN, unsigned int, no, + Properties::NON_VIRTUAL, + __void__selectCameraManipulator__unsigned_int, + "", + ""); + I_Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList, + Properties::NON_VIRTUAL, + __void__getCameraManipulatorNameList__std_listT1_std_string__R1, + "", + ""); + I_Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __bool__selectCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulatorByName__C5_std_string_R1, + "", + ""); + I_Method1(void, setRecordingAnimationPath, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setRecordingAnimationPath__bool, + "", + ""); + I_Method0(bool, getRecordingAnimationPath, + Properties::NON_VIRTUAL, + __bool__getRecordingAnimationPath, + "", + ""); + I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + Properties::NON_VIRTUAL, + __void__setAnimationPath__osg_AnimationPath_P1, + "", + ""); + I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, + __C5_osg_AnimationPath_P1__getAnimationPath, + "", + ""); + I_Method0(const double *, getPosition, + Properties::NON_VIRTUAL, + __C5_double_P1__getPosition, + "", + ""); + I_Method0(double, getSpeed, + Properties::NON_VIRTUAL, + __double__getSpeed, + "", + ""); + I_Method0(osg::Quat, getOrientation, + Properties::NON_VIRTUAL, + __osg_Quat__getOrientation, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_Method0(void, updatedSceneData, + Properties::VIRTUAL, + __void__updatedSceneData, + "Update internal structures w.r.t updated scene data. ", + ""); + I_Method0(void, cleanup_frame, + Properties::VIRTUAL, + __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_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/osgShadow/OccluderGeometry.cpp b/src/osgWrappers/osgShadow/OccluderGeometry.cpp index de5998eb6..355b1b207 100644 --- a/src/osgWrappers/osgShadow/OccluderGeometry.cpp +++ b/src/osgWrappers/osgShadow/OccluderGeometry.cpp @@ -10,15 +10,16 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -34,6 +35,7 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::OccluderGeometry::Vec3List) TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::OccluderGeometry::UIntList); BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) + I_BaseType(osg::Drawable); I_BaseType(osg::Drawable); I_Constructor0(____OccluderGeometry, "", @@ -45,13 +47,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -60,13 +62,256 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Node *, subgraph, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__computeOccluderGeometry__osg_Node_P1__osg_Matrix_P1__float, + "Compute an occluder geometry containing all the geometry in specified subgraph. ", + ""); + I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float, + "Compute an occluder geometry containing the geometry in specified drawable. ", + ""); + I_Method2(void, computeShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg, + Properties::NON_VIRTUAL, + __void__computeShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1, + "Compute ShadowVolumeGeometry. ", + ""); + I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope, + Properties::NON_VIRTUAL, + __void__setBoundingPolytope__C5_osg_Polytope_R1, + "Set the bounding polytope of the OccluderGeometry. ", + ""); + I_Method0(osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, + __osg_Polytope_R1__getBoundingPolytope, + "Get the bounding polytope of the OccluderGeometry. ", + ""); + I_Method0(const osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, + __C5_osg_Polytope_R1__getBoundingPolytope, + "Get the const bounding polytope of the OccluderGeometry. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Render the occluder geometry. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around occluder geometry. ", + ""); + I_MethodWithDefaults3(void, processGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__processGeometry__osg_Drawable_P1__osg_Matrix_P1__float, + "", + ""); + I_Constructor0(____OccluderGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::OccluderGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OccluderGeometry__C5_OccluderGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Node *, subgraph, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__computeOccluderGeometry__osg_Node_P1__osg_Matrix_P1__float, + "Compute an occluder geometry containing all the geometry in specified subgraph. ", + ""); + I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float, + "Compute an occluder geometry containing the geometry in specified drawable. ", + ""); + I_Method2(void, computeShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg, + Properties::NON_VIRTUAL, + __void__computeShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1, + "Compute ShadowVolumeGeometry. ", + ""); + I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope, + Properties::NON_VIRTUAL, + __void__setBoundingPolytope__C5_osg_Polytope_R1, + "Set the bounding polytope of the OccluderGeometry. ", + ""); + I_Method0(osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, + __osg_Polytope_R1__getBoundingPolytope, + "Get the bounding polytope of the OccluderGeometry. ", + ""); + I_Method0(const osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, + __C5_osg_Polytope_R1__getBoundingPolytope, + "Get the const bounding polytope of the OccluderGeometry. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Render the occluder geometry. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around occluder geometry. ", + ""); + I_MethodWithDefaults3(void, processGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__processGeometry__osg_Drawable_P1__osg_Matrix_P1__float, + "", + ""); + I_SimpleProperty(const osg::Polytope &, BoundingPolytope, + __C5_osg_Polytope_R1__getBoundingPolytope, + __void__setBoundingPolytope__C5_osg_Polytope_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::OccluderGeometry::Vec3List); + +TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::OccluderGeometry::UIntList); + +BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) + I_BaseType(osg::Drawable); + I_BaseType(osg::Drawable); + I_Constructor0(____OccluderGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::OccluderGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OccluderGeometry__C5_OccluderGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Node *, subgraph, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__computeOccluderGeometry__osg_Node_P1__osg_Matrix_P1__float, + "Compute an occluder geometry containing all the geometry in specified subgraph. ", + ""); + I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float, + "Compute an occluder geometry containing the geometry in specified drawable. ", + ""); + I_Method2(void, computeShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg, + Properties::NON_VIRTUAL, + __void__computeShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1, + "Compute ShadowVolumeGeometry. ", + ""); + I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope, + Properties::NON_VIRTUAL, + __void__setBoundingPolytope__C5_osg_Polytope_R1, + "Set the bounding polytope of the OccluderGeometry. ", + ""); + I_Method0(osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, + __osg_Polytope_R1__getBoundingPolytope, + "Get the bounding polytope of the OccluderGeometry. ", + ""); + I_Method0(const osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, + __C5_osg_Polytope_R1__getBoundingPolytope, + "Get the const bounding polytope of the OccluderGeometry. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Render the occluder geometry. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around occluder geometry. ", + ""); + I_MethodWithDefaults3(void, processGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, + __void__processGeometry__osg_Drawable_P1__osg_Matrix_P1__float, + "", + ""); + I_Constructor0(____OccluderGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::OccluderGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OccluderGeometry__C5_OccluderGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Node *, subgraph, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, Properties::NON_VIRTUAL, __void__computeOccluderGeometry__osg_Node_P1__osg_Matrix_P1__float, @@ -128,6 +373,7 @@ BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) + I_BaseType(osg::Drawable); I_BaseType(osg::Drawable); I_Constructor0(____ShadowVolumeGeometry, "", @@ -139,13 +385,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -154,13 +400,95 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, mode, + Properties::NON_VIRTUAL, + __void__setDrawMode__DrawMode, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, + __DrawMode__getDrawMode, + "", + ""); + I_Method1(void, setVertices, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__C5_Vec3List_R1, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, + __Vec3List_R1__getVertices, + "", + ""); + I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3List_R1__getVertices, + "", + ""); + I_Method1(void, setNormals, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, normals, + Properties::NON_VIRTUAL, + __void__setNormals__C5_Vec3List_R1, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, + __Vec3List_R1__getNormals, + "", + ""); + I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, + __C5_Vec3List_R1__getNormals, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Render the occluder geometry. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around occluder geometry. ", + ""); + I_Constructor0(____ShadowVolumeGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolumeGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowVolumeGeometry__C5_ShadowVolumeGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, mode, Properties::NON_VIRTUAL, __void__setDrawMode__DrawMode, @@ -222,5 +550,191 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) __void__setVertices__C5_Vec3List_R1); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< GLuint >); +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::ShadowVolumeGeometry::Vec3List); + +TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::ShadowVolumeGeometry::UIntList); + +BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode) + I_EnumLabel(osgShadow::ShadowVolumeGeometry::GEOMETRY); + I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_PASS); + I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) + I_BaseType(osg::Drawable); + I_BaseType(osg::Drawable); + I_Constructor0(____ShadowVolumeGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolumeGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowVolumeGeometry__C5_ShadowVolumeGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, mode, + Properties::NON_VIRTUAL, + __void__setDrawMode__DrawMode, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, + __DrawMode__getDrawMode, + "", + ""); + I_Method1(void, setVertices, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__C5_Vec3List_R1, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, + __Vec3List_R1__getVertices, + "", + ""); + I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3List_R1__getVertices, + "", + ""); + I_Method1(void, setNormals, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, normals, + Properties::NON_VIRTUAL, + __void__setNormals__C5_Vec3List_R1, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, + __Vec3List_R1__getNormals, + "", + ""); + I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, + __C5_Vec3List_R1__getNormals, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Render the occluder geometry. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around occluder geometry. ", + ""); + I_Constructor0(____ShadowVolumeGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolumeGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowVolumeGeometry__C5_ShadowVolumeGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, mode, + Properties::NON_VIRTUAL, + __void__setDrawMode__DrawMode, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, + __DrawMode__getDrawMode, + "", + ""); + I_Method1(void, setVertices, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__C5_Vec3List_R1, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, + __Vec3List_R1__getVertices, + "", + ""); + I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3List_R1__getVertices, + "", + ""); + I_Method1(void, setNormals, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, normals, + Properties::NON_VIRTUAL, + __void__setNormals__C5_Vec3List_R1, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, + __Vec3List_R1__getNormals, + "", + ""); + I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, + __C5_Vec3List_R1__getNormals, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Render the occluder geometry. ", + ""); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around occluder geometry. ", + ""); + I_SimpleProperty(osgShadow::ShadowVolumeGeometry::DrawMode, DrawMode, + __DrawMode__getDrawMode, + __void__setDrawMode__DrawMode); + I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Normals, + __C5_Vec3List_R1__getNormals, + __void__setNormals__C5_Vec3List_R1); + I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Vertices, + __C5_Vec3List_R1__getVertices, + __void__setVertices__C5_Vec3List_R1); +END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp index d76e96d18..6853f484a 100644 --- a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) + I_BaseType(osgShadow::ShadowTechnique); I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ParallelSplitShadowMap, "", @@ -34,13 +35,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -49,12 +50,113 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) + I_BaseType(osgShadow::ShadowTechnique); + I_BaseType(osgShadow::ShadowTechnique); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ShadowMap.cpp b/src/osgWrappers/osgShadow/ShadowMap.cpp index e0102b301..791821532 100644 --- a/src/osgWrappers/osgShadow/ShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ShadowMap.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) + I_BaseType(osgShadow::ShadowTechnique); I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ShadowMap, "", @@ -34,13 +35,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -49,12 +50,113 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Constructor0(____ShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowMap__C5_ShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) + I_BaseType(osgShadow::ShadowTechnique); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____ShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowMap__C5_ShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____ShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowMap__C5_ShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ShadowTexture.cpp b/src/osgWrappers/osgShadow/ShadowTexture.cpp index 07b21f4d5..f1e33bc22 100644 --- a/src/osgWrappers/osgShadow/ShadowTexture.cpp +++ b/src/osgWrappers/osgShadow/ShadowTexture.cpp @@ -10,9 +10,11 @@ #include #include -#include -#include +#include +#include +#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -23,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) + I_BaseType(osgShadow::ShadowTechnique); I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ShadowTexture, "", @@ -34,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -49,12 +52,239 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Constructor0(____ShadowTexture, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTexture &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTexture__C5_ShadowTexture_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) + I_BaseType(osgShadow::ShadowTechnique); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____ShadowTexture, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTexture &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTexture__C5_ShadowTexture_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Constructor0(____ShadowTexture, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTexture &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTexture__C5_ShadowTexture_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); END_REFLECTOR diff --git a/src/osgWrappers/osgShadow/ShadowVolume.cpp b/src/osgWrappers/osgShadow/ShadowVolume.cpp index 437115dee..2fa9e372e 100644 --- a/src/osgWrappers/osgShadow/ShadowVolume.cpp +++ b/src/osgWrappers/osgShadow/ShadowVolume.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) + I_BaseType(osgShadow::ShadowTechnique); I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ShadowVolume, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,240 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, drawMode, + Properties::NON_VIRTUAL, + __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, + __osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode, + "", + ""); + I_Method1(void, setDynamicShadowVolumes, IN, bool, dynamicShadowVolumes, + Properties::NON_VIRTUAL, + __void__setDynamicShadowVolumes__bool, + "", + ""); + I_Method0(bool, getDynamicShadowVolumes, + Properties::NON_VIRTUAL, + __bool__getDynamicShadowVolumes, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, drawMode, + Properties::NON_VIRTUAL, + __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, + __osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode, + "", + ""); + I_Method1(void, setDynamicShadowVolumes, IN, bool, dynamicShadowVolumes, + Properties::NON_VIRTUAL, + __void__setDynamicShadowVolumes__bool, + "", + ""); + I_Method0(bool, getDynamicShadowVolumes, + Properties::NON_VIRTUAL, + __bool__getDynamicShadowVolumes, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_SimpleProperty(osgShadow::ShadowVolumeGeometry::DrawMode, DrawMode, + __osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode, + __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode); + I_SimpleProperty(bool, DynamicShadowVolumes, + __bool__getDynamicShadowVolumes, + __void__setDynamicShadowVolumes__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) + I_BaseType(osgShadow::ShadowTechnique); + I_BaseType(osgShadow::ShadowTechnique); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, drawMode, + Properties::NON_VIRTUAL, + __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode, + "", + ""); + I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, + __osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode, + "", + ""); + I_Method1(void, setDynamicShadowVolumes, IN, bool, dynamicShadowVolumes, + Properties::NON_VIRTUAL, + __void__setDynamicShadowVolumes__bool, + "", + ""); + I_Method0(bool, getDynamicShadowVolumes, + Properties::NON_VIRTUAL, + __bool__getDynamicShadowVolumes, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, drawMode, Properties::NON_VIRTUAL, __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode, diff --git a/src/osgWrappers/osgShadow/ShadowedScene.cpp b/src/osgWrappers/osgShadow/ShadowedScene.cpp index 13d1e2fd5..11416d1ca 100644 --- a/src/osgWrappers/osgShadow/ShadowedScene.cpp +++ b/src/osgWrappers/osgShadow/ShadowedScene.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____ShadowedScene, "", @@ -36,37 +37,312 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", + ""); + I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setRecievesShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getRecievesShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getRecievesShadowTraversalMask, + "", + ""); + I_Method1(void, setCastsShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setCastsShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCastsShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getCastsShadowTraversalMask, + "", + ""); + I_Method1(void, setShadowTechnique, IN, osgShadow::ShadowTechnique *, technique, + Properties::NON_VIRTUAL, + __void__setShadowTechnique__ShadowTechnique_P1, + "", + ""); + I_Method0(osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, + __ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(const osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, + __C5_ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::NON_VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty any cache data structures held in the attached ShadowTechnqiue. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setRecievesShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getRecievesShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getRecievesShadowTraversalMask, + "", + ""); + I_Method1(void, setCastsShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setCastsShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCastsShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getCastsShadowTraversalMask, + "", + ""); + I_Method1(void, setShadowTechnique, IN, osgShadow::ShadowTechnique *, technique, + Properties::NON_VIRTUAL, + __void__setShadowTechnique__ShadowTechnique_P1, + "", + ""); + I_Method0(osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, + __ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(const osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, + __C5_ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::NON_VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty any cache data structures held in the attached ShadowTechnqiue. ", + ""); + 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 + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setRecievesShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getRecievesShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getRecievesShadowTraversalMask, + "", + ""); + I_Method1(void, setCastsShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setCastsShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCastsShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getCastsShadowTraversalMask, + "", + ""); + I_Method1(void, setShadowTechnique, IN, osgShadow::ShadowTechnique *, technique, + Properties::NON_VIRTUAL, + __void__setShadowTechnique__ShadowTechnique_P1, + "", + ""); + I_Method0(osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, + __ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(const osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, + __C5_ShadowTechnique_P1__getShadowTechnique, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::NON_VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Dirty any cache data structures held in the attached ShadowTechnqiue. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgSim/BlinkSequence.cpp b/src/osgWrappers/osgSim/BlinkSequence.cpp index f6e2f7853..c15ca0421 100644 --- a/src/osgWrappers/osgSim/BlinkSequence.cpp +++ b/src/osgWrappers/osgSim/BlinkSequence.cpp @@ -10,9 +10,10 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____BlinkSequence, "", @@ -35,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -50,13 +52,105 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__addPulse__double__C5_osg_Vec4_R1, + "add a pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(int, getNumPulses, + Properties::NON_VIRTUAL, + __int__getNumPulses, + "return the number of pulses. ", + ""); + I_Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPulse__unsigned_int__double__C5_osg_Vec4_R1, + "set pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(double, getPulsePeriod, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setSequenceGroup__SequenceGroup_P1, + "set the sequence group which can be used to synchronize related blink sequences. ", + ""); + I_Method0(osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, + __SequenceGroup_P1__getSequenceGroup, + "get the non const sequence group. ", + ""); + I_Method0(const osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, + __C5_SequenceGroup_P1__getSequenceGroup, + "get the const sequence group. ", + ""); + I_Method1(void, setPhaseShift, IN, double, ps, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __double__getPhaseShift, + "get the pahse shift. ", + ""); + I_Method1(double, localTime, IN, double, time, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method2(void, addPulse, IN, double, length, IN, const osg::Vec4 &, color, Properties::NON_VIRTUAL, __void__addPulse__double__C5_osg_Vec4_R1, @@ -128,30 +222,26 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) __void__setSequenceGroup__SequenceGroup_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) +BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) I_BaseType(osg::Object); - I_Constructor0(____SequenceGroup, + I_BaseType(osg::Object); + I_Constructor0(____BlinkSequence, "", ""); - 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_ConstructorWithDefaults2(IN, const osgSim::BlinkSequence &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlinkSequence__C5_BlinkSequence_R1__C5_osg_CopyOp_R1, "", ""); - I_Constructor1(IN, double, baseTime, - Properties::NON_EXPLICIT, - ____SequenceGroup__double, - "", - ""); I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -160,13 +250,173 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_PublicMemberProperty(double, _baseTime); + "", + ""); + I_Method2(void, addPulse, IN, double, length, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__addPulse__double__C5_osg_Vec4_R1, + "add a pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(int, getNumPulses, + Properties::NON_VIRTUAL, + __int__getNumPulses, + "return the number of pulses. ", + ""); + I_Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPulse__unsigned_int__double__C5_osg_Vec4_R1, + "set pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(double, getPulsePeriod, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setSequenceGroup__SequenceGroup_P1, + "set the sequence group which can be used to synchronize related blink sequences. ", + ""); + I_Method0(osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, + __SequenceGroup_P1__getSequenceGroup, + "get the non const sequence group. ", + ""); + I_Method0(const osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, + __C5_SequenceGroup_P1__getSequenceGroup, + "get the const sequence group. ", + ""); + I_Method1(void, setPhaseShift, IN, double, ps, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __double__getPhaseShift, + "get the pahse shift. ", + ""); + I_Method1(double, localTime, IN, double, time, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method2(void, addPulse, IN, double, length, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__addPulse__double__C5_osg_Vec4_R1, + "add a pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(int, getNumPulses, + Properties::NON_VIRTUAL, + __int__getNumPulses, + "return the number of pulses. ", + ""); + I_Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPulse__unsigned_int__double__C5_osg_Vec4_R1, + "set pulse of specified color and duration to the BlinkSequence. ", + ""); + I_Method0(double, getPulsePeriod, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setSequenceGroup__SequenceGroup_P1, + "set the sequence group which can be used to synchronize related blink sequences. ", + ""); + I_Method0(osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, + __SequenceGroup_P1__getSequenceGroup, + "get the non const sequence group. ", + ""); + I_Method0(const osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, + __C5_SequenceGroup_P1__getSequenceGroup, + "get the const sequence group. ", + ""); + I_Method1(void, setPhaseShift, IN, double, ps, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __double__getPhaseShift, + "get the pahse shift. ", + ""); + I_Method1(double, localTime, IN, double, time, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 diff --git a/src/osgWrappers/osgSim/ColorRange.cpp b/src/osgWrappers/osgSim/ColorRange.cpp index 41af08c0a..997c4052e 100644 --- a/src/osgWrappers/osgSim/ColorRange.cpp +++ b/src/osgWrappers/osgSim/ColorRange.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -22,6 +22,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) + I_BaseType(osgSim::ScalarsToColors); I_BaseType(osgSim::ScalarsToColors); I_Constructor2(IN, float, min, IN, float, max, ____ColorRange__float__float, @@ -37,7 +38,69 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) "Set the range of colors. ", ""); I_Method1(osg::Vec4, getColor, IN, float, scalar, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setColors__C5_std_vectorT1_osg_Vec4__R1, + "Set the range of colors. ", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) + I_BaseType(osgSim::ScalarsToColors); + I_BaseType(osgSim::ScalarsToColors); + 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, + Properties::NON_VIRTUAL, + __void__setColors__C5_std_vectorT1_osg_Vec4__R1, + "Set the range of colors. ", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::NON_VIRTUAL, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setColors__C5_std_vectorT1_osg_Vec4__R1, + "Set the range of colors. ", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::NON_VIRTUAL, __osg_Vec4__getColor__float, "Get the color for a given scalar value. ", ""); diff --git a/src/osgWrappers/osgSim/DOFTransform.cpp b/src/osgWrappers/osgSim/DOFTransform.cpp index 425a6520a..8e2cff364 100644 --- a/src/osgWrappers/osgSim/DOFTransform.cpp +++ b/src/osgWrappers/osgSim/DOFTransform.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -35,6 +36,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::DOFTransform::MultOrder) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) + I_BaseType(osg::Transform); I_BaseType(osg::Transform); I_Constructor0(____DOFTransform, "constructor ", @@ -46,37 +48,828 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", + ""); + I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setMinHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinHPR, + "", + ""); + I_Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setMaxHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxHPR, + "", + ""); + I_Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setIncrementHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementHPR, + "", + ""); + I_Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentHPR, + "", + ""); + I_Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__updateCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setMinTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinTranslate, + "", + ""); + I_Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setMaxTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxTranslate, + "", + ""); + I_Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setIncrementTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementTranslate, + "", + ""); + I_Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentTranslate, + "", + ""); + I_Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__updateCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinScale, + "", + ""); + I_Method1(void, setMaxScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setMaxScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxScale, + "", + ""); + I_Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setIncrementScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementScale, + "", + ""); + I_Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentScale, + "", + ""); + I_Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__updateCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setPutMatrix, IN, const osg::Matrix &, put, + Properties::NON_VIRTUAL, + __void__setPutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getPutMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getPutMatrix, + "", + ""); + I_Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut, + Properties::NON_VIRTUAL, + __void__setInversePutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInversePutMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInversePutMatrix, + "", + ""); + I_Method1(void, setLimitationFlags, IN, unsigned long, flags, + Properties::NON_VIRTUAL, + __void__setLimitationFlags__unsigned_long, + "", + ""); + I_Method0(unsigned long, getLimitationFlags, + Properties::NON_VIRTUAL, + __unsigned_long__getLimitationFlags, + "", + ""); + I_Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order, + Properties::NON_VIRTUAL, + __void__setHPRMultOrder__C5_MultOrder, + "", + ""); + I_Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder, + Properties::NON_VIRTUAL, + __C5_MultOrder__getHPRMultOrder, + "", + ""); + I_Method1(void, setAnimationOn, IN, bool, do_animate, + Properties::NON_VIRTUAL, + __void__setAnimationOn__bool, + "", + ""); + I_Method0(bool, getAnimationOn, + Properties::NON_VIRTUAL, + __bool__getAnimationOn, + "", + ""); + I_Method1(void, animate, IN, float, deltaTime, + Properties::NON_VIRTUAL, + __void__animate__float, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setMinHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinHPR, + "", + ""); + I_Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setMaxHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxHPR, + "", + ""); + I_Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setIncrementHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementHPR, + "", + ""); + I_Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentHPR, + "", + ""); + I_Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__updateCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setMinTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinTranslate, + "", + ""); + I_Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setMaxTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxTranslate, + "", + ""); + I_Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setIncrementTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementTranslate, + "", + ""); + I_Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentTranslate, + "", + ""); + I_Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__updateCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinScale, + "", + ""); + I_Method1(void, setMaxScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setMaxScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxScale, + "", + ""); + I_Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setIncrementScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementScale, + "", + ""); + I_Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentScale, + "", + ""); + I_Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__updateCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setPutMatrix, IN, const osg::Matrix &, put, + Properties::NON_VIRTUAL, + __void__setPutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getPutMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getPutMatrix, + "", + ""); + I_Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut, + Properties::NON_VIRTUAL, + __void__setInversePutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInversePutMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInversePutMatrix, + "", + ""); + I_Method1(void, setLimitationFlags, IN, unsigned long, flags, + Properties::NON_VIRTUAL, + __void__setLimitationFlags__unsigned_long, + "", + ""); + I_Method0(unsigned long, getLimitationFlags, + Properties::NON_VIRTUAL, + __unsigned_long__getLimitationFlags, + "", + ""); + I_Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order, + Properties::NON_VIRTUAL, + __void__setHPRMultOrder__C5_MultOrder, + "", + ""); + I_Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder, + Properties::NON_VIRTUAL, + __C5_MultOrder__getHPRMultOrder, + "", + ""); + I_Method1(void, setAnimationOn, IN, bool, do_animate, + Properties::NON_VIRTUAL, + __void__setAnimationOn__bool, + "", + ""); + I_Method0(bool, getAnimationOn, + Properties::NON_VIRTUAL, + __bool__getAnimationOn, + "", + ""); + I_Method1(void, animate, IN, float, deltaTime, + Properties::NON_VIRTUAL, + __void__animate__float, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osgSim::DOFTransform::MultOrder) + I_EnumLabel(osgSim::DOFTransform::PRH); + I_EnumLabel(osgSim::DOFTransform::PHR); + I_EnumLabel(osgSim::DOFTransform::HPR); + I_EnumLabel(osgSim::DOFTransform::HRP); + I_EnumLabel(osgSim::DOFTransform::RPH); + I_EnumLabel(osgSim::DOFTransform::RHP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) + I_BaseType(osg::Transform); + I_BaseType(osg::Transform); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setMinHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinHPR, + "", + ""); + I_Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setMaxHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxHPR, + "", + ""); + I_Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setIncrementHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementHPR, + "", + ""); + I_Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__setCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentHPR, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentHPR, + "", + ""); + I_Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, + __void__updateCurrentHPR__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setMinTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinTranslate, + "", + ""); + I_Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setMaxTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxTranslate, + "", + ""); + I_Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setIncrementTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementTranslate, + "", + ""); + I_Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__setCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentTranslate, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentTranslate, + "", + ""); + I_Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, + __void__updateCurrentTranslate__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMinScale, + "", + ""); + I_Method1(void, setMaxScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setMaxScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getMaxScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getMaxScale, + "", + ""); + I_Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setIncrementScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getIncrementScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getIncrementScale, + "", + ""); + I_Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getCurrentScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCurrentScale, + "", + ""); + I_Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__updateCurrentScale__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setPutMatrix, IN, const osg::Matrix &, put, + Properties::NON_VIRTUAL, + __void__setPutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getPutMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getPutMatrix, + "", + ""); + I_Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut, + Properties::NON_VIRTUAL, + __void__setInversePutMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInversePutMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInversePutMatrix, + "", + ""); + I_Method1(void, setLimitationFlags, IN, unsigned long, flags, + Properties::NON_VIRTUAL, + __void__setLimitationFlags__unsigned_long, + "", + ""); + I_Method0(unsigned long, getLimitationFlags, + Properties::NON_VIRTUAL, + __unsigned_long__getLimitationFlags, + "", + ""); + I_Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order, + Properties::NON_VIRTUAL, + __void__setHPRMultOrder__C5_MultOrder, + "", + ""); + I_Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder, + Properties::NON_VIRTUAL, + __C5_MultOrder__getHPRMultOrder, + "", + ""); + I_Method1(void, setAnimationOn, IN, bool, do_animate, + Properties::NON_VIRTUAL, + __void__setAnimationOn__bool, + "", + ""); + I_Method0(bool, getAnimationOn, + Properties::NON_VIRTUAL, + __bool__getAnimationOn, + "", + ""); + I_Method1(void, animate, IN, float, deltaTime, + Properties::NON_VIRTUAL, + __void__animate__float, + "", + ""); + I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeLocalToWorldMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __bool__computeWorldToLocalMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgSim/ElevationSlice.cpp b/src/osgWrappers/osgSim/ElevationSlice.cpp index 44d0dac69..3d8fa8489 100644 --- a/src/osgWrappers/osgSim/ElevationSlice.cpp +++ b/src/osgWrappers/osgSim/ElevationSlice.cpp @@ -10,8 +10,9 @@ #include #include -#include +#include #include +#include #include #include @@ -83,6 +84,63 @@ BEGIN_VALUE_REFLECTOR(osgSim::ElevationSlice) __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", ""); + I_Constructor0(____ElevationSlice, + "", + ""); + I_Method1(void, setStartPoint, IN, const osg::Vec3d &, startPoint, + Properties::NON_VIRTUAL, + __void__setStartPoint__C5_osg_Vec3d_R1, + "Set the start point of the slice. ", + ""); + I_Method0(const osg::Vec3d &, getStartPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStartPoint, + "Get the start point of the slice. ", + ""); + I_Method1(void, setEndPoint, IN, const osg::Vec3d &, endPoint, + Properties::NON_VIRTUAL, + __void__setEndPoint__C5_osg_Vec3d_R1, + "Set the end point of the slice. ", + ""); + I_Method0(const osg::Vec3d &, getEndPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEndPoint, + "Get the end point of the slice. ", + ""); + I_Method0(const osgSim::ElevationSlice::Vec3dList &, getIntersections, + Properties::NON_VIRTUAL, + __C5_Vec3dList_R1__getIntersections, + "Get the intersections in the form of a vector of Vec3d. ", + ""); + I_Method0(const osgSim::ElevationSlice::DistanceHeightList &, getDistanceHeightIntersections, + Properties::NON_VIRTUAL, + __C5_DistanceHeightList_R1__getDistanceHeightIntersections, + "Get the intersections in the form a vector of pair representing distance along the slice and height. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. ", + "Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or ElevationSlice objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_StaticMethodWithDefaults4(osgSim::ElevationSlice::Vec3dList, computeElevationSlice, IN, osg::Node *, scene, , IN, const osg::Vec3d &, startPoint, , IN, const osg::Vec3d &, endPoint, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Vec3dList__computeElevationSlice__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); I_StaticMethodWithDefaults4(osgSim::ElevationSlice::Vec3dList, computeElevationSlice, IN, osg::Node *, scene, , IN, const osg::Vec3d &, startPoint, , IN, const osg::Vec3d &, endPoint, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, __Vec3dList__computeElevationSlice__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, "Compute the vertical distance between the specified scene graph and a single HAT point. ", @@ -104,9 +162,141 @@ BEGIN_VALUE_REFLECTOR(osgSim::ElevationSlice) __void__setStartPoint__C5_osg_Vec3d_R1); END_REFLECTOR -STD_PAIR_REFLECTOR(std::pair< double COMMA double >); +TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgSim::ElevationSlice::Vec3dList); -STD_VECTOR_REFLECTOR(std::vector< osg::Vec3d >); +TYPE_NAME_ALIAS(std::pair< double COMMA double >, osgSim::ElevationSlice::DistanceHeight); -STD_VECTOR_REFLECTOR(std::vector< osgSim::ElevationSlice::DistanceHeight >); +TYPE_NAME_ALIAS(std::vector< osgSim::ElevationSlice::DistanceHeight >, osgSim::ElevationSlice::DistanceHeightList); + +BEGIN_VALUE_REFLECTOR(osgSim::ElevationSlice) + I_Constructor0(____ElevationSlice, + "", + ""); + I_Method1(void, setStartPoint, IN, const osg::Vec3d &, startPoint, + Properties::NON_VIRTUAL, + __void__setStartPoint__C5_osg_Vec3d_R1, + "Set the start point of the slice. ", + ""); + I_Method0(const osg::Vec3d &, getStartPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStartPoint, + "Get the start point of the slice. ", + ""); + I_Method1(void, setEndPoint, IN, const osg::Vec3d &, endPoint, + Properties::NON_VIRTUAL, + __void__setEndPoint__C5_osg_Vec3d_R1, + "Set the end point of the slice. ", + ""); + I_Method0(const osg::Vec3d &, getEndPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEndPoint, + "Get the end point of the slice. ", + ""); + I_Method0(const osgSim::ElevationSlice::Vec3dList &, getIntersections, + Properties::NON_VIRTUAL, + __C5_Vec3dList_R1__getIntersections, + "Get the intersections in the form of a vector of Vec3d. ", + ""); + I_Method0(const osgSim::ElevationSlice::DistanceHeightList &, getDistanceHeightIntersections, + Properties::NON_VIRTUAL, + __C5_DistanceHeightList_R1__getDistanceHeightIntersections, + "Get the intersections in the form a vector of pair representing distance along the slice and height. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. ", + "Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or ElevationSlice objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_Constructor0(____ElevationSlice, + "", + ""); + I_Method1(void, setStartPoint, IN, const osg::Vec3d &, startPoint, + Properties::NON_VIRTUAL, + __void__setStartPoint__C5_osg_Vec3d_R1, + "Set the start point of the slice. ", + ""); + I_Method0(const osg::Vec3d &, getStartPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStartPoint, + "Get the start point of the slice. ", + ""); + I_Method1(void, setEndPoint, IN, const osg::Vec3d &, endPoint, + Properties::NON_VIRTUAL, + __void__setEndPoint__C5_osg_Vec3d_R1, + "Set the end point of the slice. ", + ""); + I_Method0(const osg::Vec3d &, getEndPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEndPoint, + "Get the end point of the slice. ", + ""); + I_Method0(const osgSim::ElevationSlice::Vec3dList &, getIntersections, + Properties::NON_VIRTUAL, + __C5_Vec3dList_R1__getIntersections, + "Get the intersections in the form of a vector of Vec3d. ", + ""); + I_Method0(const osgSim::ElevationSlice::DistanceHeightList &, getDistanceHeightIntersections, + Properties::NON_VIRTUAL, + __C5_DistanceHeightList_R1__getDistanceHeightIntersections, + "Get the intersections in the form a vector of pair representing distance along the slice and height. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. ", + "Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or ElevationSlice objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_StaticMethodWithDefaults4(osgSim::ElevationSlice::Vec3dList, computeElevationSlice, IN, osg::Node *, scene, , IN, const osg::Vec3d &, startPoint, , IN, const osg::Vec3d &, endPoint, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Vec3dList__computeElevationSlice__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); + I_StaticMethodWithDefaults4(osgSim::ElevationSlice::Vec3dList, computeElevationSlice, IN, osg::Node *, scene, , IN, const osg::Vec3d &, startPoint, , IN, const osg::Vec3d &, endPoint, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Vec3dList__computeElevationSlice__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); + I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1); + I_SimpleProperty(const osgSim::ElevationSlice::DistanceHeightList &, DistanceHeightIntersections, + __C5_DistanceHeightList_R1__getDistanceHeightIntersections, + 0); + I_SimpleProperty(const osg::Vec3d &, EndPoint, + __C5_osg_Vec3d_R1__getEndPoint, + __void__setEndPoint__C5_osg_Vec3d_R1); + I_SimpleProperty(const osgSim::ElevationSlice::Vec3dList &, Intersections, + __C5_Vec3dList_R1__getIntersections, + 0); + I_SimpleProperty(const osg::Vec3d &, StartPoint, + __C5_osg_Vec3d_R1__getStartPoint, + __void__setStartPoint__C5_osg_Vec3d_R1); +END_REFLECTOR diff --git a/src/osgWrappers/osgSim/GNUmakefile b/src/osgWrappers/osgSim/GNUmakefile index cca8a4277..2d7934a3d 100644 --- a/src/osgWrappers/osgSim/GNUmakefile +++ b/src/osgWrappers/osgSim/GNUmakefile @@ -22,7 +22,6 @@ CXXFILES =\ ScalarsToColors.cpp\ Sector.cpp\ SphereSegment.cpp\ - VisibilityGroup.cpp\ LIBS += -losgSim -losg -losgIntrospection -losgUtil -losgText -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgSim/GeographicLocation.cpp b/src/osgWrappers/osgSim/GeographicLocation.cpp index eb830649a..f9a854355 100644 --- a/src/osgWrappers/osgSim/GeographicLocation.cpp +++ b/src/osgWrappers/osgSim/GeographicLocation.cpp @@ -22,6 +22,168 @@ BEGIN_OBJECT_REFLECTOR(osgSim::GeographicLocation) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____GeographicLocation, + "", + ""); + I_Constructor2(IN, double, lat, IN, double, lon, + ____GeographicLocation__double__double, + "", + ""); + I_Method0(double *, ptr, + Properties::NON_VIRTUAL, + __double_P1__ptr, + "", + ""); + I_Method0(const double *, ptr, + Properties::NON_VIRTUAL, + __C5_double_P1__ptr, + "", + ""); + I_Method2(void, set, IN, double, lat, IN, double, lon, + Properties::NON_VIRTUAL, + __void__set__double__double, + "", + ""); + I_Method0(double &, latitude, + Properties::NON_VIRTUAL, + __double_R1__latitude, + "", + ""); + I_Method0(double &, longitude, + Properties::NON_VIRTUAL, + __double_R1__longitude, + "", + ""); + I_Method0(double, latitude, + Properties::NON_VIRTUAL, + __double__latitude, + "", + ""); + I_Method0(double, longitude, + Properties::NON_VIRTUAL, + __double__longitude, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Constructor0(____GeographicLocation, + "", + ""); + I_Constructor2(IN, double, lat, IN, double, lon, + ____GeographicLocation__double__double, + "", + ""); + I_Method0(double *, ptr, + Properties::NON_VIRTUAL, + __double_P1__ptr, + "", + ""); + I_Method0(const double *, ptr, + Properties::NON_VIRTUAL, + __C5_double_P1__ptr, + "", + ""); + I_Method2(void, set, IN, double, lat, IN, double, lon, + Properties::NON_VIRTUAL, + __void__set__double__double, + "", + ""); + I_Method0(double &, latitude, + Properties::NON_VIRTUAL, + __double_R1__latitude, + "", + ""); + I_Method0(double &, longitude, + Properties::NON_VIRTUAL, + __double_R1__longitude, + "", + ""); + I_Method0(double, latitude, + Properties::NON_VIRTUAL, + __double__latitude, + "", + ""); + I_Method0(double, longitude, + Properties::NON_VIRTUAL, + __double__longitude, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::GeographicLocation) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____GeographicLocation, + "", + ""); + I_Constructor2(IN, double, lat, IN, double, lon, + ____GeographicLocation__double__double, + "", + ""); + I_Method0(double *, ptr, + Properties::NON_VIRTUAL, + __double_P1__ptr, + "", + ""); + I_Method0(const double *, ptr, + Properties::NON_VIRTUAL, + __C5_double_P1__ptr, + "", + ""); + I_Method2(void, set, IN, double, lat, IN, double, lon, + Properties::NON_VIRTUAL, + __void__set__double__double, + "", + ""); + I_Method0(double &, latitude, + Properties::NON_VIRTUAL, + __double_R1__latitude, + "", + ""); + I_Method0(double &, longitude, + Properties::NON_VIRTUAL, + __double_R1__longitude, + "", + ""); + I_Method0(double, latitude, + Properties::NON_VIRTUAL, + __double__latitude, + "", + ""); + I_Method0(double, longitude, + Properties::NON_VIRTUAL, + __double__longitude, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); I_Constructor0(____GeographicLocation, "", ""); diff --git a/src/osgWrappers/osgSim/HeightAboveTerrain.cpp b/src/osgWrappers/osgSim/HeightAboveTerrain.cpp index c9a0cf255..c6cfb4832 100644 --- a/src/osgWrappers/osgSim/HeightAboveTerrain.cpp +++ b/src/osgWrappers/osgSim/HeightAboveTerrain.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -87,6 +87,223 @@ BEGIN_VALUE_REFLECTOR(osgSim::HeightAboveTerrain) __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", ""); + I_Constructor0(____HeightAboveTerrain, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the internal HAT List so it contains no height above terrain tests. ", + ""); + I_Method1(unsigned int, addPoint, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, + __unsigned_int__addPoint__C5_osg_Vec3d_R1, + "Add a height above terrain test point in the CoordinateFrame. ", + ""); + I_Method0(unsigned int, getNumPoints, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPoints, + "Get the number of height above terrain tests. ", + ""); + I_Method2(void, setPoint, IN, unsigned int, i, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, + __void__setPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the source point of single height above terrain test. ", + ""); + I_Method1(const osg::Vec3d &, getPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPoint__unsigned_int, + "Get the source point of single height above terrain test. ", + ""); + I_Method1(double, getHeightAboveTerrain, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __double__getHeightAboveTerrain__unsigned_int, + "Get the intersection height for a single height above terrain test. ", + "Note, you must call computeIntersections(..) before you can querry the HeightAboveTerrain. If no intersections are found then height returned will be the height above mean sea level. "); + I_Method1(void, setLowestHeight, IN, double, lowestHeight, + Properties::NON_VIRTUAL, + __void__setLowestHeight__double, + "Set the lowest height that the should be tested for. ", + "Defaults to -1000, i.e. 1000m below mean sea level. "); + I_Method0(double, getLowestHeight, + Properties::NON_VIRTUAL, + __double__getLowestHeight, + "Get the lowest height that the should be tested for. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the HAT intersections with the specified scene graph. ", + "The results are all stored in the form of a single height above terrain value per HAT test. Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_StaticMethodWithDefaults3(double, computeHeightAboveTerrain, IN, osg::Node *, scene, , IN, const osg::Vec3d &, point, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __double__computeHeightAboveTerrain__osg_Node_P1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); + I_StaticMethodWithDefaults3(double, computeHeightAboveTerrain, IN, osg::Node *, scene, , IN, const osg::Vec3d &, point, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __double__computeHeightAboveTerrain__osg_Node_P1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); + I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1); + I_SimpleProperty(double, LowestHeight, + __double__getLowestHeight, + __void__setLowestHeight__double); + I_ArrayProperty(const osg::Vec3d &, Point, + __C5_osg_Vec3d_R1__getPoint__unsigned_int, + __void__setPoint__unsigned_int__C5_osg_Vec3d_R1, + __unsigned_int__getNumPoints, + __unsigned_int__addPoint__C5_osg_Vec3d_R1, + 0, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::HeightAboveTerrain) + I_Constructor0(____HeightAboveTerrain, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the internal HAT List so it contains no height above terrain tests. ", + ""); + I_Method1(unsigned int, addPoint, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, + __unsigned_int__addPoint__C5_osg_Vec3d_R1, + "Add a height above terrain test point in the CoordinateFrame. ", + ""); + I_Method0(unsigned int, getNumPoints, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPoints, + "Get the number of height above terrain tests. ", + ""); + I_Method2(void, setPoint, IN, unsigned int, i, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, + __void__setPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the source point of single height above terrain test. ", + ""); + I_Method1(const osg::Vec3d &, getPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPoint__unsigned_int, + "Get the source point of single height above terrain test. ", + ""); + I_Method1(double, getHeightAboveTerrain, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __double__getHeightAboveTerrain__unsigned_int, + "Get the intersection height for a single height above terrain test. ", + "Note, you must call computeIntersections(..) before you can querry the HeightAboveTerrain. If no intersections are found then height returned will be the height above mean sea level. "); + I_Method1(void, setLowestHeight, IN, double, lowestHeight, + Properties::NON_VIRTUAL, + __void__setLowestHeight__double, + "Set the lowest height that the should be tested for. ", + "Defaults to -1000, i.e. 1000m below mean sea level. "); + I_Method0(double, getLowestHeight, + Properties::NON_VIRTUAL, + __double__getLowestHeight, + "Get the lowest height that the should be tested for. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the HAT intersections with the specified scene graph. ", + "The results are all stored in the form of a single height above terrain value per HAT test. Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_Constructor0(____HeightAboveTerrain, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the internal HAT List so it contains no height above terrain tests. ", + ""); + I_Method1(unsigned int, addPoint, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, + __unsigned_int__addPoint__C5_osg_Vec3d_R1, + "Add a height above terrain test point in the CoordinateFrame. ", + ""); + I_Method0(unsigned int, getNumPoints, + Properties::NON_VIRTUAL, + __unsigned_int__getNumPoints, + "Get the number of height above terrain tests. ", + ""); + I_Method2(void, setPoint, IN, unsigned int, i, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, + __void__setPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the source point of single height above terrain test. ", + ""); + I_Method1(const osg::Vec3d &, getPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPoint__unsigned_int, + "Get the source point of single height above terrain test. ", + ""); + I_Method1(double, getHeightAboveTerrain, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __double__getHeightAboveTerrain__unsigned_int, + "Get the intersection height for a single height above terrain test. ", + "Note, you must call computeIntersections(..) before you can querry the HeightAboveTerrain. If no intersections are found then height returned will be the height above mean sea level. "); + I_Method1(void, setLowestHeight, IN, double, lowestHeight, + Properties::NON_VIRTUAL, + __void__setLowestHeight__double, + "Set the lowest height that the should be tested for. ", + "Defaults to -1000, i.e. 1000m below mean sea level. "); + I_Method0(double, getLowestHeight, + Properties::NON_VIRTUAL, + __double__getLowestHeight, + "Get the lowest height that the should be tested for. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the HAT intersections with the specified scene graph. ", + "The results are all stored in the form of a single height above terrain value per HAT test. Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_StaticMethodWithDefaults3(double, computeHeightAboveTerrain, IN, osg::Node *, scene, , IN, const osg::Vec3d &, point, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __double__computeHeightAboveTerrain__osg_Node_P1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); I_StaticMethodWithDefaults3(double, computeHeightAboveTerrain, IN, osg::Node *, scene, , IN, const osg::Vec3d &, point, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, __double__computeHeightAboveTerrain__osg_Node_P1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, "Compute the vertical distance between the specified scene graph and a single HAT point. ", diff --git a/src/osgWrappers/osgSim/Impostor.cpp b/src/osgWrappers/osgSim/Impostor.cpp index 5d81a66bb..8fd3e6be8 100644 --- a/src/osgWrappers/osgSim/Impostor.cpp +++ b/src/osgWrappers/osgSim/Impostor.cpp @@ -10,11 +10,12 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -29,6 +30,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >, osgSim::Impostor::ImpostorSpriteList); BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) + I_BaseType(osg::LOD); I_BaseType(osg::LOD); I_Constructor0(____Impostor, "", @@ -40,37 +42,37 @@ BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method1(void, setImpostorThreshold, IN, float, distance, Properties::NON_VIRTUAL, @@ -110,8 +112,90 @@ BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setImpostorThreshold, IN, float, distance, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getImpostorThreshold, + "", + ""); + I_MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addImpostorSprite__unsigned_int__ImpostorSprite_P1, + "Add an ImpostorSprite to the Impostor. ", + ""); + I_Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, + "Get a const list of ImpostorSprites attached to this const Impostor. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); I_SimpleProperty(float, ImpostorThreshold, __float__getImpostorThreshold, __void__setImpostorThreshold__float); @@ -120,44 +204,180 @@ BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) __void__setImpostorThresholdToBound__float); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgSim::ImpostorSprite >) - I_Constructor0(____ref_ptr, +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >, osgSim::Impostor::ImpostorSpriteList); + +BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) + I_BaseType(osg::LOD); + I_BaseType(osg::LOD); + I_Constructor0(____Impostor, "", ""); - I_Constructor1(IN, osgSim::ImpostorSprite *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setImpostorThreshold, IN, float, distance, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getImpostorThreshold, + "", + ""); + I_MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addImpostorSprite__unsigned_int__ImpostorSprite_P1, + "Add an ImpostorSprite to the Impostor. ", + ""); + I_Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, + "Get a const list of ImpostorSprites attached to this const Impostor. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + I_Constructor0(____Impostor, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osgSim::ImpostorSprite > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgSim::ImpostorSprite *, get, - Properties::NON_VIRTUAL, - __T_P1__get, + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, "", ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, "", ""); - I_Method0(osgSim::ImpostorSprite *, release, - Properties::NON_VIRTUAL, - __T_P1__release, + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgSim::ImpostorSprite > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, "", ""); - I_SimpleProperty(osgSim::ImpostorSprite *, , - __T_P1__get, - 0); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setImpostorThreshold, IN, float, distance, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getImpostorThreshold, + "", + ""); + I_MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addImpostorSprite__unsigned_int__ImpostorSprite_P1, + "Add an ImpostorSprite to the Impostor. ", + ""); + I_Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, + "Get a const list of ImpostorSprites attached to this const Impostor. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + I_SimpleProperty(float, ImpostorThreshold, + __float__getImpostorThreshold, + __void__setImpostorThreshold__float); + I_SimpleProperty(float, ImpostorThresholdToBound, + 0, + __void__setImpostorThresholdToBound__float); 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 f43ce98b1..d11cfdc3a 100644 --- a/src/osgWrappers/osgSim/ImpostorSprite.cpp +++ b/src/osgWrappers/osgSim/ImpostorSprite.cpp @@ -10,18 +10,18 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include #include #include -#include #include -#include -#include #include #include @@ -34,6 +34,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) + I_BaseType(osg::Drawable); I_BaseType(osg::Drawable); I_Constructor0(____ImpostorSprite, "", @@ -56,13 +57,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::NON_VIRTUAL, __void__setParent__Impostor_P1, @@ -196,7 +197,571 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) I_Method0(osg::BoundingBox, computeBound, Properties::VIRTUAL, __osg_BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", + "", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Constructor0(____ImpostorSprite, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone an object of the same type as an ImpostorSprite. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setParent, IN, osgSim::Impostor *, parent, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Impostor_P1__getParent, + "Get the parent, which is an Impostor. ", + ""); + I_Method0(const osgSim::Impostor *, getParent, + Properties::NON_VIRTUAL, + __C5_Impostor_P1__getParent, + "Get the const parent, which is an Impostor. ", + ""); + I_Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setStoredLocalEyePoint__C5_osg_Vec3_R1, + "Set the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method0(const osg::Vec3 &, getStoredLocalEyePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getStoredLocalEyePoint, + "Get the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method1(void, setLastFrameUsed, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __void__setLastFrameUsed__int, + "Set the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(int, getLastFrameUsed, + Properties::NON_VIRTUAL, + __int__getLastFrameUsed, + "Get the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(osg::Vec3 *, getCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_P1__getCoords, + "Get the const coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec2 *, getTexCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_P1__getTexCoords, + "Get the const texture coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec3 *, getControlCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTexture__osg_Texture2D_P1__int__int, + "", + ""); + I_Method0(osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(const osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(int, s, + Properties::NON_VIRTUAL, + __int__s, + "", + ""); + I_Method0(int, t, + Properties::NON_VIRTUAL, + __int__t, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "Draw ImpostorSprite directly. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_AttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_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::ImpostorSprite) + I_BaseType(osg::Drawable); + I_BaseType(osg::Drawable); + I_Constructor0(____ImpostorSprite, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone an object of the same type as an ImpostorSprite. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setParent, IN, osgSim::Impostor *, parent, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Impostor_P1__getParent, + "Get the parent, which is an Impostor. ", + ""); + I_Method0(const osgSim::Impostor *, getParent, + Properties::NON_VIRTUAL, + __C5_Impostor_P1__getParent, + "Get the const parent, which is an Impostor. ", + ""); + I_Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setStoredLocalEyePoint__C5_osg_Vec3_R1, + "Set the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method0(const osg::Vec3 &, getStoredLocalEyePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getStoredLocalEyePoint, + "Get the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method1(void, setLastFrameUsed, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __void__setLastFrameUsed__int, + "Set the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(int, getLastFrameUsed, + Properties::NON_VIRTUAL, + __int__getLastFrameUsed, + "Get the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(osg::Vec3 *, getCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_P1__getCoords, + "Get the const coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec2 *, getTexCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_P1__getTexCoords, + "Get the const texture coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec3 *, getControlCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTexture__osg_Texture2D_P1__int__int, + "", + ""); + I_Method0(osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(const osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(int, s, + Properties::NON_VIRTUAL, + __int__s, + "", + ""); + I_Method0(int, t, + Properties::NON_VIRTUAL, + __int__t, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "Draw ImpostorSprite directly. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_AttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera node to use for pre rendering the impostor sprite's texture. ", + ""); + I_Constructor0(____ImpostorSprite, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone an object of the same type as an ImpostorSprite. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setParent, IN, osgSim::Impostor *, parent, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Impostor_P1__getParent, + "Get the parent, which is an Impostor. ", + ""); + I_Method0(const osgSim::Impostor *, getParent, + Properties::NON_VIRTUAL, + __C5_Impostor_P1__getParent, + "Get the const parent, which is an Impostor. ", + ""); + I_Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__setStoredLocalEyePoint__C5_osg_Vec3_R1, + "Set the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method0(const osg::Vec3 &, getStoredLocalEyePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getStoredLocalEyePoint, + "Get the eye point for when the ImpostorSprite was snapped. ", + ""); + I_Method1(void, setLastFrameUsed, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __void__setLastFrameUsed__int, + "Set the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(int, getLastFrameUsed, + Properties::NON_VIRTUAL, + __int__getLastFrameUsed, + "Get the frame number for when the ImpostorSprite was last used in rendering. ", + ""); + I_Method0(osg::Vec3 *, getCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_P1__getCoords, + "Get the const coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec2 *, getTexCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_P1__getTexCoords, + "Get the const texture coordinates of the corners of the quad. ", + ""); + I_Method0(osg::Vec3 *, getControlCoords, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setTexture__osg_Texture2D_P1__int__int, + "", + ""); + I_Method0(osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, + __osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(const osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, + __C5_osg_Texture2D_P1__getTexture, + "", + ""); + I_Method0(int, s, + Properties::NON_VIRTUAL, + __int__s, + "", + ""); + I_Method0(int, t, + Properties::NON_VIRTUAL, + __int__t, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, + __void__drawImplementation__osg_State_R1, + "Draw ImpostorSprite directly. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_AttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_ConstAttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "", ""); I_Method1(void, setCamera, IN, osg::Camera *, camera, Properties::NON_VIRTUAL, @@ -242,6 +807,141 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ImpostorSpriteManager, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, first, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__first, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, last, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__last, + "", + ""); + I_Method1(void, push_back, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, + __void__push_back__ImpostorSprite_P1, + "", + ""); + I_Method1(void, remove, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, + __void__remove__ImpostorSprite_P1, + "", + ""); + I_Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__createOrReuseImpostorSprite__int__int__int, + "", + ""); + I_Method0(osg::StateSet *, createOrReuseStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__createOrReuseStateSet, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Constructor0(____ImpostorSpriteManager, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, first, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__first, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, last, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__last, + "", + ""); + I_Method1(void, push_back, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, + __void__push_back__ImpostorSprite_P1, + "", + ""); + I_Method1(void, remove, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, + __void__remove__ImpostorSprite_P1, + "", + ""); + I_Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__createOrReuseImpostorSprite__int__int__int, + "", + ""); + I_Method0(osg::StateSet *, createOrReuseStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__createOrReuseStateSet, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ImpostorSpriteManager, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, first, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__first, + "", + ""); + I_Method0(osgSim::ImpostorSprite *, last, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__last, + "", + ""); + I_Method1(void, push_back, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, + __void__push_back__ImpostorSprite_P1, + "", + ""); + I_Method1(void, remove, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, + __void__remove__ImpostorSprite_P1, + "", + ""); + I_Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __ImpostorSprite_P1__createOrReuseImpostorSprite__int__int__int, + "", + ""); + I_Method0(osg::StateSet *, createOrReuseStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__createOrReuseStateSet, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); I_Constructor0(____ImpostorSpriteManager, "", ""); diff --git a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp index 7e67009b8..8f5fbc52e 100644 --- a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp +++ b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +24,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) + I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); I_Constructor0(____InsertImpostorsVisitor, "Default to traversing all children. ", @@ -49,7 +50,162 @@ BEGIN_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "Empty visitor, make it ready for next traversal. ", + ""); + I_Method1(void, apply, IN, osg::Node &, node, Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method0(void, insertImpostors, + Properties::NON_VIRTUAL, + __void__insertImpostors, + "", + ""); + I_Constructor0(____InsertImpostorsVisitor, + "Default to traversing all children. ", + ""); + I_Method1(void, setImpostorThresholdRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setImpostorThresholdRatio__float, + "", + ""); + I_Method0(float, getImpostorThresholdRatio, + Properties::NON_VIRTUAL, + __float__getImpostorThresholdRatio, + "", + ""); + I_Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __void__setMaximumNumberOfNestedImpostors__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumberOfNestedImpostors, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumberOfNestedImpostors, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "Empty visitor, make it ready for next traversal. ", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method0(void, insertImpostors, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____InsertImpostorsVisitor, + "Default to traversing all children. ", + ""); + I_Method1(void, setImpostorThresholdRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setImpostorThresholdRatio__float, + "", + ""); + I_Method0(float, getImpostorThresholdRatio, + Properties::NON_VIRTUAL, + __float__getImpostorThresholdRatio, + "", + ""); + I_Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __void__setMaximumNumberOfNestedImpostors__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumberOfNestedImpostors, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumberOfNestedImpostors, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "Empty visitor, make it ready for next traversal. ", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method0(void, insertImpostors, + Properties::NON_VIRTUAL, + __void__insertImpostors, + "", + ""); + I_Constructor0(____InsertImpostorsVisitor, + "Default to traversing all children. ", + ""); + I_Method1(void, setImpostorThresholdRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setImpostorThresholdRatio__float, + "", + ""); + I_Method0(float, getImpostorThresholdRatio, + Properties::NON_VIRTUAL, + __float__getImpostorThresholdRatio, + "", + ""); + I_Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __void__setMaximumNumberOfNestedImpostors__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumberOfNestedImpostors, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumberOfNestedImpostors, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "Empty visitor, make it ready for next traversal. ", ""); diff --git a/src/osgWrappers/osgSim/LightPoint.cpp b/src/osgWrappers/osgSim/LightPoint.cpp index de32fb0be..2f7192d2f 100644 --- a/src/osgWrappers/osgSim/LightPoint.cpp +++ b/src/osgWrappers/osgSim/LightPoint.cpp @@ -10,8 +10,9 @@ #include #include -#include -#include +#include +#include +#include #include #include #include @@ -30,6 +31,22 @@ BEGIN_ENUM_REFLECTOR(osgSim::LightPoint::BlendingMode) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) + 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, + Properties::NON_EXPLICIT, + ____LightPoint__C5_LightPoint_R1, + "", + ""); I_Constructor0(____LightPoint, "", ""); @@ -54,5 +71,57 @@ BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) I_PublicMemberProperty(osg::ref_ptr< osgSim::Sector >, _sector); I_PublicMemberProperty(osg::ref_ptr< osgSim::BlinkSequence >, _blinkSequence); I_PublicMemberProperty(osgSim::LightPoint::BlendingMode, _blendingMode); + I_PublicMemberProperty(osg::ref_ptr< osgSim::Sector >, _sector); + I_PublicMemberProperty(osg::ref_ptr< osgSim::BlinkSequence >, _blinkSequence); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgSim::LightPoint::BlendingMode) + I_EnumLabel(osgSim::LightPoint::ADDITIVE); + I_EnumLabel(osgSim::LightPoint::BLENDED); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) + 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, + Properties::NON_EXPLICIT, + ____LightPoint__C5_LightPoint_R1, + "", + ""); + 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, + Properties::NON_EXPLICIT, + ____LightPoint__C5_LightPoint_R1, + "", + ""); + I_PublicMemberProperty(bool, _on); + I_PublicMemberProperty(osg::Vec3, _position); + I_PublicMemberProperty(osg::Vec4, _color); + I_PublicMemberProperty(float, _intensity); + I_PublicMemberProperty(float, _radius); + I_PublicMemberProperty(osg::ref_ptr< osgSim::Sector >, _sector); + I_PublicMemberProperty(osg::ref_ptr< osgSim::BlinkSequence >, _blinkSequence); + I_PublicMemberProperty(osgSim::LightPoint::BlendingMode, _blendingMode); + I_PublicMemberProperty(osg::ref_ptr< osgSim::Sector >, _sector); + I_PublicMemberProperty(osg::ref_ptr< osgSim::BlinkSequence >, _blinkSequence); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/LightPointNode.cpp b/src/osgWrappers/osgSim/LightPointNode.cpp index d9bfb43f6..dbeed86a8 100644 --- a/src/osgWrappers/osgSim/LightPointNode.cpp +++ b/src/osgWrappers/osgSim/LightPointNode.cpp @@ -10,10 +10,11 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include @@ -29,6 +30,7 @@ TYPE_NAME_ALIAS(std::vector< osgSim::LightPoint >, osgSim::LightPointNode::LightPointList); BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) + I_BaseType(osg::Node); I_BaseType(osg::Node); I_Constructor0(____LightPointNode, "", @@ -40,37 +42,37 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method0(unsigned int, getNumLightPoints, Properties::NON_VIRTUAL, @@ -165,8 +167,145 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) I_Method0(osg::BoundingSphere, computeBound, Properties::VIRTUAL, __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(unsigned int, getNumLightPoints, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLightPoints, + "", + ""); + I_Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp, + Properties::NON_VIRTUAL, + __unsigned_int__addLightPoint__C5_LightPoint_R1, + "", + ""); + I_Method1(void, removeLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __void__removeLightPoint__unsigned_int, + "", + ""); + I_Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl, + Properties::NON_VIRTUAL, + __void__setLightPointList__C5_LightPointList_R1, + "", + ""); + I_Method0(osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, + __LightPointList_R1__getLightPointList, + "", + ""); + I_Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, + __C5_LightPointList_R1__getLightPointList, + "", + ""); + I_Method1(void, setMinPixelSize, IN, float, minPixelSize, + Properties::NON_VIRTUAL, + __void__setMinPixelSize__float, + "", + ""); + I_Method0(float, getMinPixelSize, + Properties::NON_VIRTUAL, + __float__getMinPixelSize, + "", + ""); + I_Method1(void, setMaxPixelSize, IN, float, maxPixelSize, + Properties::NON_VIRTUAL, + __void__setMaxPixelSize__float, + "", + ""); + I_Method0(float, getMaxPixelSize, + Properties::NON_VIRTUAL, + __float__getMaxPixelSize, + "", + ""); + I_Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2, + Properties::NON_VIRTUAL, + __void__setMaxVisibleDistance2__float, + "", + ""); + I_Method0(float, getMaxVisibleDistance2, + Properties::NON_VIRTUAL, + __float__getMaxVisibleDistance2, + "", + ""); + I_Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps, + Properties::NON_VIRTUAL, + __void__setLightPointSystem__osgSim_LightPointSystem_P1, + "", + ""); + I_Method0(osgSim::LightPointSystem *, getLightPointSystem, + Properties::NON_VIRTUAL, + __osgSim_LightPointSystem_P1__getLightPointSystem, + "", + ""); + I_MethodWithDefaults1(void, setPointSprite, IN, bool, enable, true, + Properties::NON_VIRTUAL, + __void__setPointSprite__bool, + "", + ""); + I_Method0(bool, getPointSprite, + Properties::NON_VIRTUAL, + __bool__getPointSprite, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); I_ArrayProperty(const osgSim::LightPoint &, LightPoint, __C5_LightPoint_R1__getLightPoint__unsigned_int, 0, @@ -194,5 +333,309 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) __void__setPointSprite__bool); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osgSim::LightPoint >); +TYPE_NAME_ALIAS(std::vector< osgSim::LightPoint >, osgSim::LightPointNode::LightPointList); + +BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) + I_BaseType(osg::Node); + I_BaseType(osg::Node); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(unsigned int, getNumLightPoints, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLightPoints, + "", + ""); + I_Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp, + Properties::NON_VIRTUAL, + __unsigned_int__addLightPoint__C5_LightPoint_R1, + "", + ""); + I_Method1(void, removeLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __void__removeLightPoint__unsigned_int, + "", + ""); + I_Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl, + Properties::NON_VIRTUAL, + __void__setLightPointList__C5_LightPointList_R1, + "", + ""); + I_Method0(osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, + __LightPointList_R1__getLightPointList, + "", + ""); + I_Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, + __C5_LightPointList_R1__getLightPointList, + "", + ""); + I_Method1(void, setMinPixelSize, IN, float, minPixelSize, + Properties::NON_VIRTUAL, + __void__setMinPixelSize__float, + "", + ""); + I_Method0(float, getMinPixelSize, + Properties::NON_VIRTUAL, + __float__getMinPixelSize, + "", + ""); + I_Method1(void, setMaxPixelSize, IN, float, maxPixelSize, + Properties::NON_VIRTUAL, + __void__setMaxPixelSize__float, + "", + ""); + I_Method0(float, getMaxPixelSize, + Properties::NON_VIRTUAL, + __float__getMaxPixelSize, + "", + ""); + I_Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2, + Properties::NON_VIRTUAL, + __void__setMaxVisibleDistance2__float, + "", + ""); + I_Method0(float, getMaxVisibleDistance2, + Properties::NON_VIRTUAL, + __float__getMaxVisibleDistance2, + "", + ""); + I_Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps, + Properties::NON_VIRTUAL, + __void__setLightPointSystem__osgSim_LightPointSystem_P1, + "", + ""); + I_Method0(osgSim::LightPointSystem *, getLightPointSystem, + Properties::NON_VIRTUAL, + __osgSim_LightPointSystem_P1__getLightPointSystem, + "", + ""); + I_MethodWithDefaults1(void, setPointSprite, IN, bool, enable, true, + Properties::NON_VIRTUAL, + __void__setPointSprite__bool, + "", + ""); + I_Method0(bool, getPointSprite, + Properties::NON_VIRTUAL, + __bool__getPointSprite, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(unsigned int, getNumLightPoints, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLightPoints, + "", + ""); + I_Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp, + Properties::NON_VIRTUAL, + __unsigned_int__addLightPoint__C5_LightPoint_R1, + "", + ""); + I_Method1(void, removeLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __void__removeLightPoint__unsigned_int, + "", + ""); + I_Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_LightPoint_R1__getLightPoint__unsigned_int, + "", + ""); + I_Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl, + Properties::NON_VIRTUAL, + __void__setLightPointList__C5_LightPointList_R1, + "", + ""); + I_Method0(osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, + __LightPointList_R1__getLightPointList, + "", + ""); + I_Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, + __C5_LightPointList_R1__getLightPointList, + "", + ""); + I_Method1(void, setMinPixelSize, IN, float, minPixelSize, + Properties::NON_VIRTUAL, + __void__setMinPixelSize__float, + "", + ""); + I_Method0(float, getMinPixelSize, + Properties::NON_VIRTUAL, + __float__getMinPixelSize, + "", + ""); + I_Method1(void, setMaxPixelSize, IN, float, maxPixelSize, + Properties::NON_VIRTUAL, + __void__setMaxPixelSize__float, + "", + ""); + I_Method0(float, getMaxPixelSize, + Properties::NON_VIRTUAL, + __float__getMaxPixelSize, + "", + ""); + I_Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2, + Properties::NON_VIRTUAL, + __void__setMaxVisibleDistance2__float, + "", + ""); + I_Method0(float, getMaxVisibleDistance2, + Properties::NON_VIRTUAL, + __float__getMaxVisibleDistance2, + "", + ""); + I_Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps, + Properties::NON_VIRTUAL, + __void__setLightPointSystem__osgSim_LightPointSystem_P1, + "", + ""); + I_Method0(osgSim::LightPointSystem *, getLightPointSystem, + Properties::NON_VIRTUAL, + __osgSim_LightPointSystem_P1__getLightPointSystem, + "", + ""); + I_MethodWithDefaults1(void, setPointSprite, IN, bool, enable, true, + Properties::NON_VIRTUAL, + __void__setPointSprite__bool, + "", + ""); + I_Method0(bool, getPointSprite, + Properties::NON_VIRTUAL, + __bool__getPointSprite, + "", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + 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 diff --git a/src/osgWrappers/osgSim/LightPointSystem.cpp b/src/osgWrappers/osgSim/LightPointSystem.cpp index 9b5dc1379..a800aeb44 100644 --- a/src/osgWrappers/osgSim/LightPointSystem.cpp +++ b/src/osgWrappers/osgSim/LightPointSystem.cpp @@ -10,8 +10,9 @@ #include #include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -29,6 +30,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::LightPointSystem::AnimationState) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____LightPointSystem, "", @@ -40,13 +42,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -55,13 +57,186 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, + __float__getIntensity, + "", + ""); + I_Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state, + Properties::NON_VIRTUAL, + __void__setAnimationState__LightPointSystem_AnimationState, + "", + ""); + I_Method0(osgSim::LightPointSystem::AnimationState, getAnimationState, + Properties::NON_VIRTUAL, + __LightPointSystem_AnimationState__getAnimationState, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, + __float__getIntensity, + "", + ""); + I_Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state, + Properties::NON_VIRTUAL, + __void__setAnimationState__LightPointSystem_AnimationState, + "", + ""); + I_Method0(osgSim::LightPointSystem::AnimationState, getAnimationState, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ENUM_REFLECTOR(osgSim::LightPointSystem::AnimationState) + I_EnumLabel(osgSim::LightPointSystem::ANIMATION_ON); + I_EnumLabel(osgSim::LightPointSystem::ANIMATION_OFF); + I_EnumLabel(osgSim::LightPointSystem::ANIMATION_RANDOM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, + __float__getIntensity, + "", + ""); + I_Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state, + Properties::NON_VIRTUAL, + __void__setAnimationState__LightPointSystem_AnimationState, + "", + ""); + I_Method0(osgSim::LightPointSystem::AnimationState, getAnimationState, + Properties::NON_VIRTUAL, + __LightPointSystem_AnimationState__getAnimationState, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setIntensity, IN, float, intensity, Properties::NON_VIRTUAL, __void__setIntensity__float, diff --git a/src/osgWrappers/osgSim/LineOfSight.cpp b/src/osgWrappers/osgSim/LineOfSight.cpp index dfbf20606..d4cc79549 100644 --- a/src/osgWrappers/osgSim/LineOfSight.cpp +++ b/src/osgWrappers/osgSim/LineOfSight.cpp @@ -10,8 +10,9 @@ #include #include -#include +#include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +25,99 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DatabaseCacheReadCallback) I_BaseType(osgUtil::IntersectionVisitor::ReadCallback); + I_BaseType(osgUtil::IntersectionVisitor::ReadCallback); + I_Constructor0(____DatabaseCacheReadCallback, + "", + ""); + I_Method1(void, setMaximumNumOfFilesToCache, IN, unsigned int, maxNumFilesToCache, + Properties::NON_VIRTUAL, + __void__setMaximumNumOfFilesToCache__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfFilesToCache, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumOfFilesToCache, + "", + ""); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "", + ""); + I_Method0(void, pruneUnusedDatabaseCache, + Properties::NON_VIRTUAL, + __void__pruneUnusedDatabaseCache, + "", + ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); + I_Constructor0(____DatabaseCacheReadCallback, + "", + ""); + I_Method1(void, setMaximumNumOfFilesToCache, IN, unsigned int, maxNumFilesToCache, + Properties::NON_VIRTUAL, + __void__setMaximumNumOfFilesToCache__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfFilesToCache, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumOfFilesToCache, + "", + ""); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "", + ""); + I_Method0(void, pruneUnusedDatabaseCache, + Properties::NON_VIRTUAL, + __void__pruneUnusedDatabaseCache, + "", + ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); + I_SimpleProperty(unsigned int, MaximumNumOfFilesToCache, + __unsigned_int__getMaximumNumOfFilesToCache, + __void__setMaximumNumOfFilesToCache__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::DatabaseCacheReadCallback) + I_BaseType(osgUtil::IntersectionVisitor::ReadCallback); + I_BaseType(osgUtil::IntersectionVisitor::ReadCallback); + I_Constructor0(____DatabaseCacheReadCallback, + "", + ""); + I_Method1(void, setMaximumNumOfFilesToCache, IN, unsigned int, maxNumFilesToCache, + Properties::NON_VIRTUAL, + __void__setMaximumNumOfFilesToCache__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumNumOfFilesToCache, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumNumOfFilesToCache, + "", + ""); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "", + ""); + I_Method0(void, pruneUnusedDatabaseCache, + Properties::NON_VIRTUAL, + __void__pruneUnusedDatabaseCache, + "", + ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); I_Constructor0(____DatabaseCacheReadCallback, "", ""); @@ -123,6 +217,223 @@ BEGIN_VALUE_REFLECTOR(osgSim::LineOfSight) __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", ""); + I_Constructor0(____LineOfSight, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the internal LOS List so it contains no line of sight tests. ", + ""); + I_Method2(unsigned int, addLOS, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __unsigned_int__addLOS__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Add a line of sight test, consisting of start and end point. ", + "Returns the index number of the newly adding LOS test. "); + I_Method0(unsigned int, getNumLOS, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLOS, + "Get the number of line of sight tests. ", + ""); + I_Method2(void, setStartPoint, IN, unsigned int, i, IN, const osg::Vec3d &, start, + Properties::NON_VIRTUAL, + __void__setStartPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the start point of signel line of sight test. ", + ""); + I_Method1(const osg::Vec3d &, getStartPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStartPoint__unsigned_int, + "Get the start point of single line of sight test. ", + ""); + I_Method2(void, setEndPoint, IN, unsigned int, i, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __void__setEndPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the end point of single line of sight test. ", + ""); + I_Method1(const osg::Vec3d &, getEndPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEndPoint__unsigned_int, + "Get the end point of single line of sight test. ", + ""); + I_Method1(const osgSim::LineOfSight::Intersections &, getIntersections, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Intersections_R1__getIntersections__unsigned_int, + "Get the intersection points for a single line of sight test. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the LOS intersections with the specified scene graph. ", + "The results are all stored in the form of Intersections list, one per LOS test. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_StaticMethodWithDefaults4(osgSim::LineOfSight::Intersections, computeIntersections, IN, osg::Node *, scene, , IN, const osg::Vec3d &, start, , IN, const osg::Vec3d &, end, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Intersections__computeIntersections__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the intersection between the specified scene graph and a single LOS start,end pair. ", + "Returns an IntersectionList, of all the points intersected. "); + I_StaticMethodWithDefaults4(osgSim::LineOfSight::Intersections, computeIntersections, IN, osg::Node *, scene, , IN, const osg::Vec3d &, start, , IN, const osg::Vec3d &, end, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Intersections__computeIntersections__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the intersection between the specified scene graph and a single LOS start,end pair. ", + "Returns an IntersectionList, of all the points intersected. "); + I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1); + I_IndexedProperty(const osg::Vec3d &, EndPoint, + __C5_osg_Vec3d_R1__getEndPoint__unsigned_int, + __void__setEndPoint__unsigned_int__C5_osg_Vec3d_R1, + 0); + I_IndexedProperty(const osg::Vec3d &, StartPoint, + __C5_osg_Vec3d_R1__getStartPoint__unsigned_int, + __void__setStartPoint__unsigned_int__C5_osg_Vec3d_R1, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgSim::LineOfSight::Intersections); + +BEGIN_VALUE_REFLECTOR(osgSim::LineOfSight) + I_Constructor0(____LineOfSight, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the internal LOS List so it contains no line of sight tests. ", + ""); + I_Method2(unsigned int, addLOS, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __unsigned_int__addLOS__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Add a line of sight test, consisting of start and end point. ", + "Returns the index number of the newly adding LOS test. "); + I_Method0(unsigned int, getNumLOS, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLOS, + "Get the number of line of sight tests. ", + ""); + I_Method2(void, setStartPoint, IN, unsigned int, i, IN, const osg::Vec3d &, start, + Properties::NON_VIRTUAL, + __void__setStartPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the start point of signel line of sight test. ", + ""); + I_Method1(const osg::Vec3d &, getStartPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStartPoint__unsigned_int, + "Get the start point of single line of sight test. ", + ""); + I_Method2(void, setEndPoint, IN, unsigned int, i, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __void__setEndPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the end point of single line of sight test. ", + ""); + I_Method1(const osg::Vec3d &, getEndPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEndPoint__unsigned_int, + "Get the end point of single line of sight test. ", + ""); + I_Method1(const osgSim::LineOfSight::Intersections &, getIntersections, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Intersections_R1__getIntersections__unsigned_int, + "Get the intersection points for a single line of sight test. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the LOS intersections with the specified scene graph. ", + "The results are all stored in the form of Intersections list, one per LOS test. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_Constructor0(____LineOfSight, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the internal LOS List so it contains no line of sight tests. ", + ""); + I_Method2(unsigned int, addLOS, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __unsigned_int__addLOS__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Add a line of sight test, consisting of start and end point. ", + "Returns the index number of the newly adding LOS test. "); + I_Method0(unsigned int, getNumLOS, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLOS, + "Get the number of line of sight tests. ", + ""); + I_Method2(void, setStartPoint, IN, unsigned int, i, IN, const osg::Vec3d &, start, + Properties::NON_VIRTUAL, + __void__setStartPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the start point of signel line of sight test. ", + ""); + I_Method1(const osg::Vec3d &, getStartPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStartPoint__unsigned_int, + "Get the start point of single line of sight test. ", + ""); + I_Method2(void, setEndPoint, IN, unsigned int, i, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __void__setEndPoint__unsigned_int__C5_osg_Vec3d_R1, + "Set the end point of single line of sight test. ", + ""); + I_Method1(const osg::Vec3d &, getEndPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEndPoint__unsigned_int, + "Get the end point of single line of sight test. ", + ""); + I_Method1(const osgSim::LineOfSight::Intersections &, getIntersections, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Intersections_R1__getIntersections__unsigned_int, + "Get the intersection points for a single line of sight test. ", + ""); + I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, + "Compute the LOS intersections with the specified scene graph. ", + "The results are all stored in the form of Intersections list, one per LOS test. "); + I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, + __void__clearDatabaseCache, + "Clear the database cache. ", + ""); + I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, + "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); + I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", + ""); + I_StaticMethodWithDefaults4(osgSim::LineOfSight::Intersections, computeIntersections, IN, osg::Node *, scene, , IN, const osg::Vec3d &, start, , IN, const osg::Vec3d &, end, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Intersections__computeIntersections__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the intersection between the specified scene graph and a single LOS start,end pair. ", + "Returns an IntersectionList, of all the points intersected. "); I_StaticMethodWithDefaults4(osgSim::LineOfSight::Intersections, computeIntersections, IN, osg::Node *, scene, , IN, const osg::Vec3d &, start, , IN, const osg::Vec3d &, end, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, __Intersections__computeIntersections__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, "Compute the intersection between the specified scene graph and a single LOS start,end pair. ", diff --git a/src/osgWrappers/osgSim/MultiSwitch.cpp b/src/osgWrappers/osgSim/MultiSwitch.cpp index a4c74a6e0..748cc6efb 100644 --- a/src/osgWrappers/osgSim/MultiSwitch.cpp +++ b/src/osgWrappers/osgSim/MultiSwitch.cpp @@ -10,10 +10,11 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -29,6 +30,7 @@ TYPE_NAME_ALIAS(std::vector< bool >, osgSim::MultiSwitch::ValueList); TYPE_NAME_ALIAS(std::vector< osgSim::MultiSwitch::ValueList >, osgSim::MultiSwitch::SwitchSetList); BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____MultiSwitch, "", @@ -40,37 +42,37 @@ BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", ""); I_Method1(void, setNewChildDefaultValue, IN, bool, value, Properties::NON_VIRTUAL, @@ -85,18 +87,150 @@ BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) I_Method1(bool, addChild, IN, osg::Node *, child, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setValue__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int, + "", + ""); + I_Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, + "", + ""); + I_Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + __bool__getChildValue__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setActiveSwitchSet__unsigned_int, + "Set which of the available switch set lists to use. ", + ""); + I_Method0(unsigned int, getActiveSwitchSet, + Properties::NON_VIRTUAL, + __unsigned_int__getActiveSwitchSet, + "Get which of the available switch set lists to use. ", + ""); + I_Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList, + Properties::NON_VIRTUAL, + __void__setSwitchSetList__C5_SwitchSetList_R1, + "Set the compile set of different values. ", + ""); + I_Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_ValueList_R1__getValueList__unsigned_int, + "Get the a single set of different values for a particular switch set. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__osg_Node_P1, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__osg_Node_P1, + "", + ""); + I_Method1(bool, removeChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__removeChild__osg_Node_P1, + "", + ""); I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value, Properties::NON_VIRTUAL, __void__setValue__unsigned_int__unsigned_int__bool, @@ -191,5 +325,303 @@ BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) 0); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osgSim::MultiSwitch::ValueList >); +TYPE_NAME_ALIAS(std::vector< bool >, osgSim::MultiSwitch::ValueList); + +TYPE_NAME_ALIAS(std::vector< osgSim::MultiSwitch::ValueList >, osgSim::MultiSwitch::SwitchSetList); + +BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__osg_Node_P1, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__osg_Node_P1, + "", + ""); + I_Method1(bool, removeChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__removeChild__osg_Node_P1, + "", + ""); + I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setValue__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int, + "", + ""); + I_Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, + "", + ""); + I_Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + __bool__getChildValue__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setActiveSwitchSet__unsigned_int, + "Set which of the available switch set lists to use. ", + ""); + I_Method0(unsigned int, getActiveSwitchSet, + Properties::NON_VIRTUAL, + __unsigned_int__getActiveSwitchSet, + "Get which of the available switch set lists to use. ", + ""); + I_Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList, + Properties::NON_VIRTUAL, + __void__setSwitchSetList__C5_SwitchSetList_R1, + "Set the compile set of different values. ", + ""); + I_Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_ValueList_R1__getValueList__unsigned_int, + "Get the a single set of different values for a particular switch set. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setNewChildDefaultValue__bool, + "", + ""); + I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, + __bool__getNewChildDefaultValue, + "", + ""); + I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__addChild__osg_Node_P1, + "", + ""); + I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__osg_Node_P1, + "", + ""); + I_Method1(bool, removeChild, IN, osg::Node *, child, + Properties::VIRTUAL, + __bool__removeChild__osg_Node_P1, + "", + ""); + I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setValue__unsigned_int__unsigned_int__bool, + "", + ""); + I_Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int, + "", + ""); + I_Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value, + Properties::NON_VIRTUAL, + __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, + "", + ""); + I_Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + __bool__getChildValue__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setActiveSwitchSet__unsigned_int, + "Set which of the available switch set lists to use. ", + ""); + I_Method0(unsigned int, getActiveSwitchSet, + Properties::NON_VIRTUAL, + __unsigned_int__getActiveSwitchSet, + "Get which of the available switch set lists to use. ", + ""); + I_Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList, + Properties::NON_VIRTUAL, + __void__setSwitchSetList__C5_SwitchSetList_R1, + "Set the compile set of different values. ", + ""); + I_Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 diff --git a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp index 52cc4d7d0..19c740676 100644 --- a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp +++ b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp @@ -10,9 +10,8 @@ #include #include +#include #include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -45,10 +44,69 @@ BEGIN_VALUE_REFLECTOR(osgFlightUtil::Optimizer) __void__optimize__osg_Node_P1__unsigned_int, "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", ""); + I_Constructor0(____Optimizer, + "", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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_ENUM_REFLECTOR(osgFlightUtil::Optimizer::OptimizationOptions) + I_EnumLabel(osgFlightUtil::Optimizer::TESSELLATE_POLYGON); + I_EnumLabel(osgFlightUtil::Optimizer::MERGE_GEODES); + I_EnumLabel(osgFlightUtil::Optimizer::MAKE_LIT); + I_EnumLabel(osgFlightUtil::Optimizer::DEFAULT_OPTIMIZATIONS); + I_EnumLabel(osgFlightUtil::Optimizer::ALL_OPTIMIZATIONS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgFlightUtil::Optimizer) + I_Constructor0(____Optimizer, + "", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __void__optimize__osg_Node_P1__unsigned_int, + "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", + ""); + I_Constructor0(____Optimizer, + "", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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_BaseType(osg::NodeVisitor); + I_Constructor0(____MakeLitVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); I_Constructor0(____MakeLitVisitor, "default to traversing all children. ", ""); @@ -59,25 +117,59 @@ BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MakeLitVisitor) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MergeGeodesVisitor) +BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MakeLitVisitor) I_BaseType(osg::NodeVisitor); - I_Constructor0(____MergeGeodesVisitor, + I_BaseType(osg::NodeVisitor); + I_Constructor0(____MakeLitVisitor, "default to traversing all children. ", ""); - I_Method1(void, apply, IN, osg::Group &, group, + I_Method1(void, apply, IN, osg::Geode &, geode, Properties::VIRTUAL, - __void__apply__osg_Group_R1, + __void__apply__osg_Geode_R1, "", ""); - I_Method1(void, mergeGeodes, IN, osg::Group &, group, - Properties::NON_VIRTUAL, - __void__mergeGeodes__osg_Group_R1, + I_Constructor0(____MakeLitVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, "", ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TessellateVisitor) I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____TessellateVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Constructor0(____TessellateVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TessellateVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____TessellateVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); I_Constructor0(____TessellateVisitor, "default to traversing all children. ", ""); diff --git a/src/osgWrappers/osgSim/OverlayNode.cpp b/src/osgWrappers/osgSim/OverlayNode.cpp index 5f7585f5f..379738686 100644 --- a/src/osgWrappers/osgSim/OverlayNode.cpp +++ b/src/osgWrappers/osgSim/OverlayNode.cpp @@ -10,13 +10,13 @@ #include #include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -28,6 +28,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____OverlayNode, "", @@ -39,37 +40,477 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", + ""); + I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setOverlaySubgraph__osg_Node_P1, + "Set the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, + __osg_Node_P1__getOverlaySubgraph, + "Get the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(const osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getOverlaySubgraph, + "Get the const overlay subgraph which will be render to texture. ", + ""); + I_Method0(void, dirtyOverlayTexture, + Properties::NON_VIRTUAL, + __void__dirtyOverlayTexture, + "Inform the OverlayNode that the overlay texture needs to be updated. ", + ""); + I_Method1(void, setContinuousUpdate, IN, bool, update, + Properties::NON_VIRTUAL, + __void__setContinuousUpdate__bool, + "Set whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method0(bool, getContinuousUpdate, + Properties::NON_VIRTUAL, + __bool__getContinuousUpdate, + "Get whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method1(void, setOverlayClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setOverlayClearColor__C5_osg_Vec4_R1, + "Set the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method0(const osg::Vec4 &, getOverlayClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getOverlayClearColor, + "Get the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method1(void, setTexEnvMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setOverlayTextureUnit__unsigned_int, + "Set the texture unit that the texture should be assigned to. ", + ""); + I_Method0(unsigned int, getOverlayTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getOverlayTextureUnit, + "Get the texture unit that the texture should be assigned to. ", + ""); + I_Method1(void, setOverlayTextureSizeHint, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getOverlayTextureSizeHint, + "Get the texture size hint. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setOverlaySubgraph__osg_Node_P1, + "Set the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, + __osg_Node_P1__getOverlaySubgraph, + "Get the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(const osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getOverlaySubgraph, + "Get the const overlay subgraph which will be render to texture. ", + ""); + I_Method0(void, dirtyOverlayTexture, + Properties::NON_VIRTUAL, + __void__dirtyOverlayTexture, + "Inform the OverlayNode that the overlay texture needs to be updated. ", + ""); + I_Method1(void, setContinuousUpdate, IN, bool, update, + Properties::NON_VIRTUAL, + __void__setContinuousUpdate__bool, + "Set whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method0(bool, getContinuousUpdate, + Properties::NON_VIRTUAL, + __bool__getContinuousUpdate, + "Get whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method1(void, setOverlayClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setOverlayClearColor__C5_osg_Vec4_R1, + "Set the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method0(const osg::Vec4 &, getOverlayClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getOverlayClearColor, + "Get the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method1(void, setTexEnvMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setOverlayTextureUnit__unsigned_int, + "Set the texture unit that the texture should be assigned to. ", + ""); + I_Method0(unsigned int, getOverlayTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getOverlayTextureUnit, + "Get the texture unit that the texture should be assigned to. ", + ""); + I_Method1(void, setOverlayTextureSizeHint, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getOverlayTextureSizeHint, + "Get the texture size hint. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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::Camera *, Camera, + __osg_Camera_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); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setOverlaySubgraph__osg_Node_P1, + "Set the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, + __osg_Node_P1__getOverlaySubgraph, + "Get the overlay subgraph which will be rendered to texture. ", + ""); + I_Method0(const osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getOverlaySubgraph, + "Get the const overlay subgraph which will be render to texture. ", + ""); + I_Method0(void, dirtyOverlayTexture, + Properties::NON_VIRTUAL, + __void__dirtyOverlayTexture, + "Inform the OverlayNode that the overlay texture needs to be updated. ", + ""); + I_Method1(void, setContinuousUpdate, IN, bool, update, + Properties::NON_VIRTUAL, + __void__setContinuousUpdate__bool, + "Set whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method0(bool, getContinuousUpdate, + Properties::NON_VIRTUAL, + __bool__getContinuousUpdate, + "Get whether the OverlayNode should update the overlay texture on every frame. ", + ""); + I_Method1(void, setOverlayClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setOverlayClearColor__C5_osg_Vec4_R1, + "Set the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method0(const osg::Vec4 &, getOverlayClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getOverlayClearColor, + "Get the clear color to use when rendering the overlay subgraph. ", + ""); + I_Method1(void, setTexEnvMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setOverlayTextureUnit__unsigned_int, + "Set the texture unit that the texture should be assigned to. ", + ""); + I_Method0(unsigned int, getOverlayTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getOverlayTextureUnit, + "Get the texture unit that the texture should be assigned to. ", + ""); + I_Method1(void, setOverlayTextureSizeHint, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getOverlayTextureSizeHint, + "Get the texture size hint. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera used to implement the render to texture of the overlay subgraph. ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __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_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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgSim/ScalarBar.cpp b/src/osgWrappers/osgSim/ScalarBar.cpp index 904c66ac5..b8a94e6e2 100644 --- a/src/osgWrappers/osgSim/ScalarBar.cpp +++ b/src/osgWrappers/osgSim/ScalarBar.cpp @@ -10,12 +10,7 @@ #include #include -#include -#include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -25,192 +20,8 @@ #undef OUT #endif -BEGIN_ENUM_REFLECTOR(osgSim::ScalarBar::Orientation) - I_EnumLabel(osgSim::ScalarBar::HORIZONTAL); - I_EnumLabel(osgSim::ScalarBar::VERTICAL); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) - I_BaseType(osg::Geode); - 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, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the node's class type. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the node's library. ", - ""); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __void__setNumColors__int, - "Set the number of distinct colours on the ScalarBar. ", - ""); - I_Method0(int, getNumColors, - Properties::NON_VIRTUAL, - __int__getNumColors, - "Get the number of distinct colours on the ScalarBar. ", - ""); - I_Method1(void, setNumLabels, IN, int, numLabels, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __int__getNumLabels, - "Get the number of labels displayed along the ScalarBar. ", - ""); - I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, - Properties::NON_VIRTUAL, - __void__setScalarsToColors__ScalarsToColors_P1, - "Set the ScalarsToColors mapping object for the ScalarBar. ", - ""); - I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, - Properties::NON_VIRTUAL, - __C5_ScalarsToColors_P1__getScalarsToColors, - "Get the ScalarsToColors mapping object from the ScalarBar. ", - ""); - I_Method1(void, setTitle, IN, const std::string &, title, - Properties::NON_VIRTUAL, - __void__setTitle__C5_std_string_R1, - "Set the title for the ScalarBar, set \"\" for no title. ", - ""); - I_Method0(std::string, getTitle, - Properties::NON_VIRTUAL, - __std_string__getTitle, - "Get the title for the ScalarBar. ", - ""); - I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, - Properties::NON_VIRTUAL, - __void__setPosition__C5_osg_Vec3_R1, - "Set the position of scalar bar's lower left corner. ", - ""); - I_Method0(const osg::Vec3 &, getPosition, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getPosition, - "Get the position of scalar bar. ", - ""); - I_Method1(void, setWidth, IN, float, width, - Properties::NON_VIRTUAL, - __void__setWidth__float, - "Set the width of the scalar bar. ", - ""); - I_Method0(float, getWidth, - Properties::NON_VIRTUAL, - __float__getWidth, - "Get the width of the scalar bar. ", - ""); - I_Method1(void, setAspectRatio, IN, float, aspectRatio, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __float__getAspectRatio, - "Get the aspect ration (y/x) for the displayed bar. ", - ""); - I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, - Properties::NON_VIRTUAL, - __void__setOrientation__ScalarBar_Orientation, - "Set the orientation of the ScalarBar. ", - "Orientation "); - I_Method0(osgSim::ScalarBar::Orientation, getOrientation, - Properties::NON_VIRTUAL, - __ScalarBar_Orientation__getOrientation, - "Get the orientation of the ScalarBar. ", - "Orientation "); - I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, - Properties::NON_VIRTUAL, - __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, - Properties::NON_VIRTUAL, - __C5_ScalarPrinter_P1__getScalarPrinter, - "Get the ScalarPrinter object. ", - ""); - I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, - Properties::NON_VIRTUAL, - __void__setTextProperties__C5_TextProperties_R1, - "Set the TextProperties for the labels & title. ", - "TextProperties "); - I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, - Properties::NON_VIRTUAL, - __C5_TextProperties_R1__getTextProperties, - "Get the TextProperties for the labels & title. ", - "TextProperties "); - I_Method0(void, update, - Properties::NON_VIRTUAL, - __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_BaseType(osg::Referenced); I_Constructor0(____ScalarPrinter, "", @@ -220,9 +31,35 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) __std_string__printScalar__float, "", ""); + I_Method1(std::string, printScalar, IN, float, scalar, + Properties::VIRTUAL, + __std_string__printScalar__float, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ScalarPrinter, + "", + ""); + I_Method1(std::string, printScalar, IN, float, scalar, + Properties::VIRTUAL, + __std_string__printScalar__float, + "", + ""); + I_Method1(std::string, printScalar, IN, float, scalar, + Properties::VIRTUAL, + __std_string__printScalar__float, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::TextProperties) + I_Constructor0(____TextProperties, + "", + ""); I_Constructor0(____TextProperties, "", ""); @@ -230,5 +67,20 @@ BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::TextProperties) I_PublicMemberProperty(std::pair< int COMMA int >, _fontResolution); I_PublicMemberProperty(float, _characterSize); I_PublicMemberProperty(osg::Vec4, _color); + I_PublicMemberProperty(std::pair< int COMMA int >, _fontResolution); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::TextProperties) + I_Constructor0(____TextProperties, + "", + ""); + I_Constructor0(____TextProperties, + "", + ""); + I_PublicMemberProperty(std::string, _fontFile); + I_PublicMemberProperty(std::pair< int COMMA int >, _fontResolution); + I_PublicMemberProperty(float, _characterSize); + I_PublicMemberProperty(osg::Vec4, _color); + I_PublicMemberProperty(std::pair< int COMMA int >, _fontResolution); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/ScalarsToColors.cpp b/src/osgWrappers/osgSim/ScalarsToColors.cpp index b99eabdea..2a10a7960 100644 --- a/src/osgWrappers/osgSim/ScalarsToColors.cpp +++ b/src/osgWrappers/osgSim/ScalarsToColors.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,75 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarsToColors) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor2(IN, float, scalarMin, IN, float, scalarMax, + ____ScalarsToColors__float__float, + "", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::VIRTUAL, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + I_Method0(float, getMin, + Properties::NON_VIRTUAL, + __float__getMin, + "Get the minimum scalar value. ", + ""); + I_Method0(float, getMax, + Properties::NON_VIRTUAL, + __float__getMax, + "Get the maximum scalar value. ", + ""); + I_Constructor2(IN, float, scalarMin, IN, float, scalarMax, + ____ScalarsToColors__float__float, + "", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::VIRTUAL, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + I_Method0(float, getMin, + Properties::NON_VIRTUAL, + __float__getMin, + "Get the minimum scalar value. ", + ""); + I_Method0(float, getMax, + Properties::NON_VIRTUAL, + __float__getMax, + "Get the maximum scalar value. ", + ""); + I_SimpleProperty(float, Max, + __float__getMax, + 0); + I_SimpleProperty(float, Min, + __float__getMin, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarsToColors) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor2(IN, float, scalarMin, IN, float, scalarMax, + ____ScalarsToColors__float__float, + "", + ""); + I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::VIRTUAL, + __osg_Vec4__getColor__float, + "Get the color for a given scalar value. ", + ""); + I_Method0(float, getMin, + Properties::NON_VIRTUAL, + __float__getMin, + "Get the minimum scalar value. ", + ""); + I_Method0(float, getMax, + Properties::NON_VIRTUAL, + __float__getMax, + "Get the maximum scalar value. ", + ""); I_Constructor2(IN, float, scalarMin, IN, float, scalarMax, ____ScalarsToColors__float__float, "", diff --git a/src/osgWrappers/osgSim/Sector.cpp b/src/osgWrappers/osgSim/Sector.cpp index c16f967fc..8c6890040 100644 --- a/src/osgWrappers/osgSim/Sector.cpp +++ b/src/osgWrappers/osgSim/Sector.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +24,9 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + I_BaseType(osgSim::ElevationRange); I_BaseType(osgSim::Sector); I_BaseType(osgSim::AzimRange); I_BaseType(osgSim::ElevationRange); @@ -41,13 +44,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -56,13 +59,130 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + I_BaseType(osgSim::ElevationRange); + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + I_BaseType(osgSim::ElevationRange); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) @@ -84,9 +204,68 @@ BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) __float__azimSector__C5_osg_Vec3_R1, "", ""); + I_Constructor0(____AzimRange, + "", + ""); + I_MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, + __void__setAzimuthRange__float__float__float, + "", + ""); + I_Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle, + Properties::NON_VIRTUAL, + __void__getAzimuthRange__float_R1__float_R1__float_R1, + "", + ""); + I_Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, + __float__azimSector__C5_osg_Vec3_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) + I_Constructor0(____AzimRange, + "", + ""); + I_MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, + __void__setAzimuthRange__float__float__float, + "", + ""); + I_Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle, + Properties::NON_VIRTUAL, + __void__getAzimuthRange__float_R1__float_R1__float_R1, + "", + ""); + I_Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, + __float__azimSector__C5_osg_Vec3_R1, + "", + ""); + I_Constructor0(____AzimRange, + "", + ""); + I_MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, + __void__setAzimuthRange__float__float__float, + "", + ""); + I_Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle, + Properties::NON_VIRTUAL, + __void__getAzimuthRange__float_R1__float_R1__float_R1, + "", + ""); + I_Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, + __float__azimSector__C5_osg_Vec3_R1, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); I_BaseType(osgSim::Sector); I_BaseType(osgSim::AzimRange); I_Constructor0(____AzimSector, @@ -103,13 +282,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -118,16 +297,132 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) + I_BaseType(osgSim::Sector); I_BaseType(osgSim::Sector); I_Constructor0(____ConeSector, "", @@ -143,13 +438,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -158,13 +453,210 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setAxis__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getAxis, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAxis, + "", + ""); + I_MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f, + Properties::NON_VIRTUAL, + __void__setAngle__float__float, + "", + ""); + I_Method0(float, getAngle, + Properties::NON_VIRTUAL, + __float__getAngle, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, + Properties::NON_VIRTUAL, + __void__setAxis__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getAxis, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAxis, + "", + ""); + I_MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f, + Properties::NON_VIRTUAL, + __void__setAngle__float__float, + "", + ""); + I_Method0(float, getAngle, + Properties::NON_VIRTUAL, + __float__getAngle, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __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::ConeSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::Sector); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, + Properties::NON_VIRTUAL, + __void__setAxis__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getAxis, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getAxis, + "", + ""); + I_MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f, + Properties::NON_VIRTUAL, + __void__setAngle__float__float, + "", + ""); + I_Method0(float, getAngle, + Properties::NON_VIRTUAL, + __float__getAngle, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, Properties::NON_VIRTUAL, __void__setAxis__C5_osg_Vec3_R1, @@ -202,6 +694,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) + I_BaseType(osgSim::Sector); I_BaseType(osgSim::Sector); I_Constructor0(____DirectionalSector, "", @@ -217,13 +710,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -232,13 +725,306 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setDirection__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDirection, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getDirection, + "", + ""); + I_Method1(void, setHorizLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setHorizLobeAngle__float, + "", + ""); + I_Method0(float, getHorizLobeAngle, + Properties::NON_VIRTUAL, + __float__getHorizLobeAngle, + "", + ""); + I_Method1(void, setLobeRollAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setLobeRollAngle__float, + "", + ""); + I_Method0(float, getLobeRollAngle, + Properties::NON_VIRTUAL, + __float__getLobeRollAngle, + "", + ""); + I_Method1(void, setVertLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setVertLobeAngle__float, + "", + ""); + I_Method0(float, getVertLobeAngle, + Properties::NON_VIRTUAL, + __float__getVertLobeAngle, + "", + ""); + I_Method1(void, setFadeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setFadeAngle__float, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + I_Method0(void, computeMatrix, + Properties::NON_VIRTUAL, + __void__computeMatrix, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, + __void__setDirection__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDirection, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getDirection, + "", + ""); + I_Method1(void, setHorizLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setHorizLobeAngle__float, + "", + ""); + I_Method0(float, getHorizLobeAngle, + Properties::NON_VIRTUAL, + __float__getHorizLobeAngle, + "", + ""); + I_Method1(void, setLobeRollAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setLobeRollAngle__float, + "", + ""); + I_Method0(float, getLobeRollAngle, + Properties::NON_VIRTUAL, + __float__getLobeRollAngle, + "", + ""); + I_Method1(void, setVertLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setVertLobeAngle__float, + "", + ""); + I_Method0(float, getVertLobeAngle, + Properties::NON_VIRTUAL, + __float__getVertLobeAngle, + "", + ""); + I_Method1(void, setFadeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setFadeAngle__float, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + I_Method0(void, computeMatrix, + Properties::NON_VIRTUAL, + __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_OBJECT_REFLECTOR(osgSim::DirectionalSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::Sector); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, + __void__setDirection__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDirection, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getDirection, + "", + ""); + I_Method1(void, setHorizLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setHorizLobeAngle__float, + "", + ""); + I_Method0(float, getHorizLobeAngle, + Properties::NON_VIRTUAL, + __float__getHorizLobeAngle, + "", + ""); + I_Method1(void, setLobeRollAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setLobeRollAngle__float, + "", + ""); + I_Method0(float, getLobeRollAngle, + Properties::NON_VIRTUAL, + __float__getLobeRollAngle, + "", + ""); + I_Method1(void, setVertLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setVertLobeAngle__float, + "", + ""); + I_Method0(float, getVertLobeAngle, + Properties::NON_VIRTUAL, + __float__getVertLobeAngle, + "", + ""); + I_Method1(void, setFadeAngle, IN, float, angle, + Properties::NON_VIRTUAL, + __void__setFadeAngle__float, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + I_Method0(void, computeMatrix, + Properties::NON_VIRTUAL, + __void__computeMatrix, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, Properties::NON_VIRTUAL, __void__setDirection__C5_osg_Vec3_R1, @@ -312,6 +1098,102 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) + I_Constructor0(____ElevationRange, + "", + ""); + I_MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, + __void__setElevationRange__float__float__float, + "", + ""); + I_Method0(float, getMinElevation, + Properties::NON_VIRTUAL, + __float__getMinElevation, + "", + ""); + I_Method0(float, getMaxElevation, + Properties::NON_VIRTUAL, + __float__getMaxElevation, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + I_Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, + __float__elevationSector__C5_osg_Vec3_R1, + "", + ""); + I_Constructor0(____ElevationRange, + "", + ""); + I_MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, + __void__setElevationRange__float__float__float, + "", + ""); + I_Method0(float, getMinElevation, + Properties::NON_VIRTUAL, + __float__getMinElevation, + "", + ""); + I_Method0(float, getMaxElevation, + Properties::NON_VIRTUAL, + __float__getMaxElevation, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + I_Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, + __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_VALUE_REFLECTOR(osgSim::ElevationRange) + I_Constructor0(____ElevationRange, + "", + ""); + I_MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, + __void__setElevationRange__float__float__float, + "", + ""); + I_Method0(float, getMinElevation, + Properties::NON_VIRTUAL, + __float__getMinElevation, + "", + ""); + I_Method0(float, getMaxElevation, + Properties::NON_VIRTUAL, + __float__getMaxElevation, + "", + ""); + I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, + __float__getFadeAngle, + "", + ""); + I_Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, + __float__elevationSector__C5_osg_Vec3_R1, + "", + ""); I_Constructor0(____ElevationRange, "", ""); @@ -352,6 +1234,8 @@ BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::ElevationRange); I_BaseType(osgSim::Sector); I_BaseType(osgSim::ElevationRange); I_Constructor0(____ElevationSector, @@ -368,13 +1252,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -383,16 +1267,132 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::ElevationRange); + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::ElevationRange); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____Sector, "", @@ -404,13 +1404,84 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + 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, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgSim/SphereSegment.cpp b/src/osgWrappers/osgSim/SphereSegment.cpp index 723fb15fc..f9bad3ad7 100644 --- a/src/osgWrappers/osgSim/SphereSegment.cpp +++ b/src/osgWrappers/osgSim/SphereSegment.cpp @@ -10,15 +10,15 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -40,6 +40,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) + I_BaseType(osg::Geode); I_BaseType(osg::Geode); I_Constructor0(____SphereSegment, "Default constructor. ", @@ -164,32 +165,202 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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, + Properties::NON_VIRTUAL, + __void__setCentre__C5_osg_Vec3_R1, + "Set the centre point of the SphereSegment. ", + ""); + I_Method0(const osg::Vec3 &, getCentre, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCentre, + "Get the centre point of the SphereSegment. ", + ""); + I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "Set the radius of the SphereSegment. ", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "Get the radius of the SphereSegment. ", + ""); + I_Method3(void, setArea, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setDensity__int, + "Set the density of the sphere segment. ", + ""); + I_Method0(int, getDensity, + Properties::NON_VIRTUAL, + __int__getDensity, + "Get the density of the sphere segment. ", + ""); + I_Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __DrawMask__getDrawMask, + "Get the DrawMask. ", + ""); + I_Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSurfaceColor__C5_osg_Vec4_R1, + "Set the color of the surface. ", + ""); + I_Method0(osg::Vec4, getSurfaceColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSurfaceColor, + "Get the color of the surface. ", + ""); + I_Method1(void, setSpokeColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSpokeColor__C5_osg_Vec4_R1, + "Set the color of the spokes. ", + ""); + I_Method0(osg::Vec4, getSpokeColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSpokeColor, + "Get the color of the spokes. ", + ""); + I_Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setEdgeLineColor__C5_osg_Vec4_R1, + "Set the color of the edge line. ", + ""); + I_Method0(osg::Vec4, getEdgeLineColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getEdgeLineColor, + "Get the color of the edge line. ", + ""); + I_Method1(void, setSideColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSideColor__C5_osg_Vec4_R1, + "Set the color of the planes. ", + ""); + I_Method0(osg::Vec4, getSideColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSideColor, + "Get the color of the planes. ", + ""); + I_Method1(void, setAllColors, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setAllColors__C5_osg_Vec4_R1, + "Set color of all components. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, Properties::NON_VIRTUAL, @@ -240,44 +411,385 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) __void__setSurfaceColor__C5_osg_Vec4_R1); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Vec3Array >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osg::Vec3Array *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Vec3Array > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Vec3Array *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osg::Vec3Array *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Vec3Array > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, - "", - ""); - I_SimpleProperty(osg::Vec3Array *, , - __T_P1__get, - 0); +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec3Array > >, osgSim::SphereSegment::LineList); + +BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) + I_EnumLabel(osgSim::SphereSegment::SURFACE); + I_EnumLabel(osgSim::SphereSegment::SPOKES); + I_EnumLabel(osgSim::SphereSegment::EDGELINE); + I_EnumLabel(osgSim::SphereSegment::SIDES); + I_EnumLabel(osgSim::SphereSegment::ALL); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Vec3Array > >); +BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) + I_BaseType(osg::Geode); + I_BaseType(osg::Geode); + 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, + Properties::NON_VIRTUAL, + __void__setCentre__C5_osg_Vec3_R1, + "Set the centre point of the SphereSegment. ", + ""); + I_Method0(const osg::Vec3 &, getCentre, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCentre, + "Get the centre point of the SphereSegment. ", + ""); + I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "Set the radius of the SphereSegment. ", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "Get the radius of the SphereSegment. ", + ""); + I_Method3(void, setArea, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setDensity__int, + "Set the density of the sphere segment. ", + ""); + I_Method0(int, getDensity, + Properties::NON_VIRTUAL, + __int__getDensity, + "Get the density of the sphere segment. ", + ""); + I_Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __DrawMask__getDrawMask, + "Get the DrawMask. ", + ""); + I_Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSurfaceColor__C5_osg_Vec4_R1, + "Set the color of the surface. ", + ""); + I_Method0(osg::Vec4, getSurfaceColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSurfaceColor, + "Get the color of the surface. ", + ""); + I_Method1(void, setSpokeColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSpokeColor__C5_osg_Vec4_R1, + "Set the color of the spokes. ", + ""); + I_Method0(osg::Vec4, getSpokeColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSpokeColor, + "Get the color of the spokes. ", + ""); + I_Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setEdgeLineColor__C5_osg_Vec4_R1, + "Set the color of the edge line. ", + ""); + I_Method0(osg::Vec4, getEdgeLineColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getEdgeLineColor, + "Get the color of the edge line. ", + ""); + I_Method1(void, setSideColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSideColor__C5_osg_Vec4_R1, + "Set the color of the planes. ", + ""); + I_Method0(osg::Vec4, getSideColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSideColor, + "Get the color of the planes. ", + ""); + I_Method1(void, setAllColors, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setAllColors__C5_osg_Vec4_R1, + "Set color of all components. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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_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, + Properties::NON_VIRTUAL, + __void__setCentre__C5_osg_Vec3_R1, + "Set the centre point of the SphereSegment. ", + ""); + I_Method0(const osg::Vec3 &, getCentre, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getCentre, + "Get the centre point of the SphereSegment. ", + ""); + I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, + __void__setRadius__float, + "Set the radius of the SphereSegment. ", + ""); + I_Method0(float, getRadius, + Properties::NON_VIRTUAL, + __float__getRadius, + "Get the radius of the SphereSegment. ", + ""); + I_Method3(void, setArea, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setDensity__int, + "Set the density of the sphere segment. ", + ""); + I_Method0(int, getDensity, + Properties::NON_VIRTUAL, + __int__getDensity, + "Get the density of the sphere segment. ", + ""); + I_Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __DrawMask__getDrawMask, + "Get the DrawMask. ", + ""); + I_Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSurfaceColor__C5_osg_Vec4_R1, + "Set the color of the surface. ", + ""); + I_Method0(osg::Vec4, getSurfaceColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSurfaceColor, + "Get the color of the surface. ", + ""); + I_Method1(void, setSpokeColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSpokeColor__C5_osg_Vec4_R1, + "Set the color of the spokes. ", + ""); + I_Method0(osg::Vec4, getSpokeColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSpokeColor, + "Get the color of the spokes. ", + ""); + I_Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setEdgeLineColor__C5_osg_Vec4_R1, + "Set the color of the edge line. ", + ""); + I_Method0(osg::Vec4, getEdgeLineColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getEdgeLineColor, + "Get the color of the edge line. ", + ""); + I_Method1(void, setSideColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setSideColor__C5_osg_Vec4_R1, + "Set the color of the planes. ", + ""); + I_Method0(osg::Vec4, getSideColor, + Properties::NON_VIRTUAL, + __osg_Vec4__getSideColor, + "Get the color of the planes. ", + ""); + I_Method1(void, setAllColors, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, + __void__setAllColors__C5_osg_Vec4_R1, + "Set color of all components. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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 diff --git a/src/osgWrappers/osgTerrain/DataSet.cpp b/src/osgWrappers/osgTerrain/DataSet.cpp index 3b99b163a..49d91e3e6 100644 --- a/src/osgWrappers/osgTerrain/DataSet.cpp +++ b/src/osgWrappers/osgTerrain/DataSet.cpp @@ -10,16 +10,17 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -71,6 +72,425 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile, + Properties::NON_VIRTUAL, + __void__insertTileToQuadMap__CompositeDestination_P1, + "", + ""); + I_Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __CompositeDestination_P1__getComposite__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y, + Properties::NON_VIRTUAL, + __Row_R1__getRow__unsigned_int__unsigned_int, + "", + ""); + I_Constructor0(____DataSet, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source, + Properties::NON_VIRTUAL, + __void__addSource__Source_P1, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite, + Properties::NON_VIRTUAL, + __void__addSource__CompositeSource_P1, + "", + ""); + I_Method0(void, loadSources, + Properties::NON_VIRTUAL, + __void__loadSources, + "", + ""); + I_Method1(void, setMaximumTileImageSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaximumTileImageSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileImageSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumTileImageSize, + "", + ""); + I_Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaximumTileTerrainSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileTerrainSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumTileTerrainSize, + "", + ""); + I_Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d, + Properties::NON_VIRTUAL, + __void__setMaximumVisibleDistanceOfTopLevel__float, + "", + ""); + I_Method0(float, getMaximumVisibleDistanceOfTopLevel, + Properties::NON_VIRTUAL, + __float__getMaximumVisibleDistanceOfTopLevel, + "", + ""); + I_Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setRadiusToMaxVisibleDistanceRatio__float, + "", + ""); + I_Method0(float, getRadiusToMaxVisibleDistanceRatio, + Properties::NON_VIRTUAL, + __float__getRadiusToMaxVisibleDistanceRatio, + "", + ""); + I_Method1(void, setVerticalScale, IN, float, verticalScale, + Properties::NON_VIRTUAL, + __void__setVerticalScale__float, + "", + ""); + I_Method0(float, getVerticalScale, + Properties::NON_VIRTUAL, + __float__getVerticalScale, + "", + ""); + I_Method1(void, setSkirtRatio, IN, float, skirtRatio, + Properties::NON_VIRTUAL, + __void__setSkirtRatio__float, + "", + ""); + I_Method0(float, getSkirtRatio, + Properties::NON_VIRTUAL, + __float__getSkirtRatio, + "", + ""); + I_Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor, + Properties::NON_VIRTUAL, + __void__setDefaultColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultColor, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setDestinationCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setDestinationCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getDestinationCoordinateSystem, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setIntermediateCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setIntermediateCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getIntermediateCoordinateSystem, + "", + ""); + I_Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setConvertFromGeographicToGeocentric__bool, + "", + ""); + I_Method0(bool, getConvertFromGeographicToGeocentric, + Properties::NON_VIRTUAL, + __bool__getConvertFromGeographicToGeocentric, + "", + ""); + I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et, + Properties::NON_VIRTUAL, + __void__setEllipsoidModel__osg_EllipsoidModel_P1, + "", + ""); + I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __C5_osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(bool, mapLatLongsToXYZ, + Properties::NON_VIRTUAL, + __bool__mapLatLongsToXYZ, + "", + ""); + I_Method1(void, setDestinationExtents, IN, const osgTerrain::GeospatialExtents &, extents, + Properties::NON_VIRTUAL, + __void__setDestinationExtents__C5_GeospatialExtents_R1, + "", + ""); + I_Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform, + Properties::NON_VIRTUAL, + __void__setDestinationGeoTransform__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(void, setArchiveName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setArchiveName__C5_std_string_R1, + "Set the Archive name if one is to be used. ", + ""); + I_Method0(const std::string &, getArchiveName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getArchiveName, + "Get the Archive name. ", + ""); + I_Method1(void, setArchive, IN, osgDB::Archive *, archive, + Properties::NON_VIRTUAL, + __void__setArchive__osgDB_Archive_P1, + "Set the Archive. ", + ""); + I_Method0(osgDB::Archive *, getArchive, + Properties::NON_VIRTUAL, + __osgDB_Archive_P1__getArchive, + "Get the Archive if one is to being used. ", + ""); + I_Method1(void, setDestinationName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setDirectory__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDirectory, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDirectory, + "", + ""); + I_Method1(void, setDestinationTileBaseName, IN, const std::string &, basename, + Properties::NON_VIRTUAL, + __void__setDestinationTileBaseName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileBaseName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationTileBaseName, + "", + ""); + I_Method1(void, setDestinationTileExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, + __void__setDestinationTileExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileExtension, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationTileExtension, + "", + ""); + I_Method1(void, setDestinationImageExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, + __void__setDestinationImageExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationImageExtension, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationImageExtension, + "", + ""); + I_Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type, + Properties::NON_VIRTUAL, + __void__setDatabaseType__DatabaseType, + "", + ""); + I_Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType, + Properties::NON_VIRTUAL, + __DatabaseType__getDatabaseType, + "", + ""); + I_Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type, + Properties::NON_VIRTUAL, + __void__setGeometryType__GeometryType, + "", + ""); + I_Method0(osgTerrain::DataSet::GeometryType, getGeometryType, + Properties::NON_VIRTUAL, + __GeometryType__getGeometryType, + "", + ""); + I_Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type, + Properties::NON_VIRTUAL, + __void__setTextureType__TextureType, + "", + ""); + I_Method0(osgTerrain::DataSet::TextureType, getTextureType, + Properties::NON_VIRTUAL, + __TextureType__getTextureType, + "", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, d, + Properties::NON_VIRTUAL, + __void__setMaxAnisotropy__float, + "", + ""); + I_Method0(float, getMaxAnisotropy, + Properties::NON_VIRTUAL, + __float__getMaxAnisotropy, + "", + ""); + I_Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode, + Properties::NON_VIRTUAL, + __void__setMipMappingMode__MipMappingMode, + "", + ""); + I_Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode, + Properties::NON_VIRTUAL, + __MipMappingMode__getMipMappingMode, + "", + ""); + I_Method1(void, setUseLocalTileTransform, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseLocalTileTransform__bool, + "", + ""); + I_Method0(bool, getUseLocalTileTransform, + Properties::NON_VIRTUAL, + __bool__getUseLocalTileTransform, + "", + ""); + I_Method1(void, setSimplifyTerrain, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSimplifyTerrain__bool, + "", + ""); + I_Method0(bool, getSimplifyTerrain, + Properties::NON_VIRTUAL, + __bool__getSimplifyTerrain, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDecorateGeneratedSceneGraphWithCoordinateSystemNode__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + Properties::NON_VIRTUAL, + __bool__getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDecorateGeneratedSceneGraphWithMultiTextureControl__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl, + Properties::NON_VIRTUAL, + __bool__getDecorateGeneratedSceneGraphWithMultiTextureControl, + "", + ""); + I_Method0(unsigned int, getNumOfTextureLevels, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOfTextureLevels, + "", + ""); + I_Method1(void, setCommentString, IN, const std::string &, comment, + Properties::NON_VIRTUAL, + __void__setCommentString__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommentString, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommentString, + "", + ""); + I_Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setWriteNodeBeforeSimplification__bool, + "", + ""); + I_Method0(bool, getWriteNodeBeforeSimplification, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__computeDestinationGraphFromSources__unsigned_int, + "", + ""); + I_Method0(void, updateSourcesForDestinationGraphNeeds, + Properties::NON_VIRTUAL, + __void__updateSourcesForDestinationGraphNeeds, + "", + ""); + I_Method0(void, populateDestinationGraphFromSources, + Properties::NON_VIRTUAL, + __void__populateDestinationGraphFromSources, + "", + ""); + I_Method1(void, createDestination, IN, unsigned int, numLevels, + Properties::NON_VIRTUAL, + __void__createDestination__unsigned_int, + "", + ""); + I_Method0(void, buildDestination, + Properties::NON_VIRTUAL, + __void__buildDestination, + "", + ""); + I_Method0(void, writeDestination, + Properties::NON_VIRTUAL, + __void__writeDestination, + "", + ""); + I_Method0(osg::Node *, getDestinationRootNode, + Properties::NON_VIRTUAL, + __osg_Node_P1__getDestinationRootNode, + "", + ""); + I_Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void___writeNodeFile__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void___writeImageFile__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile, Properties::NON_VIRTUAL, __void__insertTileToQuadMap__CompositeDestination_P1, @@ -501,6 +921,1019 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) __int__getNotifyOffset_S, "", ""); + 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::map< unsigned int COMMA osgTerrain::DataSet::CompositeDestination * >, osgTerrain::DataSet::Row); + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgTerrain::DataSet::Row >, osgTerrain::DataSet::Level); + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgTerrain::DataSet::Level >, osgTerrain::DataSet::QuadMap); + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeType) + I_EnumLabel(osgTerrain::DataSet::GROUP); + I_EnumLabel(osgTerrain::DataSet::LOD); + I_EnumLabel(osgTerrain::DataSet::PAGED_LOD); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::DatabaseType) + I_EnumLabel(osgTerrain::DataSet::LOD_DATABASE); + I_EnumLabel(osgTerrain::DataSet::PagedLOD_DATABASE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::GeometryType) + I_EnumLabel(osgTerrain::DataSet::HEIGHT_FIELD); + I_EnumLabel(osgTerrain::DataSet::POLYGONAL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::TextureType) + I_EnumLabel(osgTerrain::DataSet::RGB_24); + I_EnumLabel(osgTerrain::DataSet::RGBA); + I_EnumLabel(osgTerrain::DataSet::RGB_16); + I_EnumLabel(osgTerrain::DataSet::RGBA_16); + I_EnumLabel(osgTerrain::DataSet::COMPRESSED_TEXTURE); + I_EnumLabel(osgTerrain::DataSet::COMPRESSED_RGBA_TEXTURE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::MipMappingMode) + I_EnumLabel(osgTerrain::DataSet::NO_MIP_MAPPING); + I_EnumLabel(osgTerrain::DataSet::MIP_MAPPING_HARDWARE); + I_EnumLabel(osgTerrain::DataSet::MIP_MAPPING_IMAGERY); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile, + Properties::NON_VIRTUAL, + __void__insertTileToQuadMap__CompositeDestination_P1, + "", + ""); + I_Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __CompositeDestination_P1__getComposite__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y, + Properties::NON_VIRTUAL, + __Row_R1__getRow__unsigned_int__unsigned_int, + "", + ""); + I_Constructor0(____DataSet, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source, + Properties::NON_VIRTUAL, + __void__addSource__Source_P1, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite, + Properties::NON_VIRTUAL, + __void__addSource__CompositeSource_P1, + "", + ""); + I_Method0(void, loadSources, + Properties::NON_VIRTUAL, + __void__loadSources, + "", + ""); + I_Method1(void, setMaximumTileImageSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaximumTileImageSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileImageSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumTileImageSize, + "", + ""); + I_Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaximumTileTerrainSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileTerrainSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumTileTerrainSize, + "", + ""); + I_Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d, + Properties::NON_VIRTUAL, + __void__setMaximumVisibleDistanceOfTopLevel__float, + "", + ""); + I_Method0(float, getMaximumVisibleDistanceOfTopLevel, + Properties::NON_VIRTUAL, + __float__getMaximumVisibleDistanceOfTopLevel, + "", + ""); + I_Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setRadiusToMaxVisibleDistanceRatio__float, + "", + ""); + I_Method0(float, getRadiusToMaxVisibleDistanceRatio, + Properties::NON_VIRTUAL, + __float__getRadiusToMaxVisibleDistanceRatio, + "", + ""); + I_Method1(void, setVerticalScale, IN, float, verticalScale, + Properties::NON_VIRTUAL, + __void__setVerticalScale__float, + "", + ""); + I_Method0(float, getVerticalScale, + Properties::NON_VIRTUAL, + __float__getVerticalScale, + "", + ""); + I_Method1(void, setSkirtRatio, IN, float, skirtRatio, + Properties::NON_VIRTUAL, + __void__setSkirtRatio__float, + "", + ""); + I_Method0(float, getSkirtRatio, + Properties::NON_VIRTUAL, + __float__getSkirtRatio, + "", + ""); + I_Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor, + Properties::NON_VIRTUAL, + __void__setDefaultColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultColor, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setDestinationCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setDestinationCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getDestinationCoordinateSystem, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setIntermediateCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setIntermediateCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getIntermediateCoordinateSystem, + "", + ""); + I_Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setConvertFromGeographicToGeocentric__bool, + "", + ""); + I_Method0(bool, getConvertFromGeographicToGeocentric, + Properties::NON_VIRTUAL, + __bool__getConvertFromGeographicToGeocentric, + "", + ""); + I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et, + Properties::NON_VIRTUAL, + __void__setEllipsoidModel__osg_EllipsoidModel_P1, + "", + ""); + I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __C5_osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(bool, mapLatLongsToXYZ, + Properties::NON_VIRTUAL, + __bool__mapLatLongsToXYZ, + "", + ""); + I_Method1(void, setDestinationExtents, IN, const osgTerrain::GeospatialExtents &, extents, + Properties::NON_VIRTUAL, + __void__setDestinationExtents__C5_GeospatialExtents_R1, + "", + ""); + I_Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform, + Properties::NON_VIRTUAL, + __void__setDestinationGeoTransform__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(void, setArchiveName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setArchiveName__C5_std_string_R1, + "Set the Archive name if one is to be used. ", + ""); + I_Method0(const std::string &, getArchiveName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getArchiveName, + "Get the Archive name. ", + ""); + I_Method1(void, setArchive, IN, osgDB::Archive *, archive, + Properties::NON_VIRTUAL, + __void__setArchive__osgDB_Archive_P1, + "Set the Archive. ", + ""); + I_Method0(osgDB::Archive *, getArchive, + Properties::NON_VIRTUAL, + __osgDB_Archive_P1__getArchive, + "Get the Archive if one is to being used. ", + ""); + I_Method1(void, setDestinationName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setDirectory__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDirectory, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDirectory, + "", + ""); + I_Method1(void, setDestinationTileBaseName, IN, const std::string &, basename, + Properties::NON_VIRTUAL, + __void__setDestinationTileBaseName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileBaseName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationTileBaseName, + "", + ""); + I_Method1(void, setDestinationTileExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, + __void__setDestinationTileExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileExtension, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationTileExtension, + "", + ""); + I_Method1(void, setDestinationImageExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, + __void__setDestinationImageExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationImageExtension, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationImageExtension, + "", + ""); + I_Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type, + Properties::NON_VIRTUAL, + __void__setDatabaseType__DatabaseType, + "", + ""); + I_Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType, + Properties::NON_VIRTUAL, + __DatabaseType__getDatabaseType, + "", + ""); + I_Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type, + Properties::NON_VIRTUAL, + __void__setGeometryType__GeometryType, + "", + ""); + I_Method0(osgTerrain::DataSet::GeometryType, getGeometryType, + Properties::NON_VIRTUAL, + __GeometryType__getGeometryType, + "", + ""); + I_Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type, + Properties::NON_VIRTUAL, + __void__setTextureType__TextureType, + "", + ""); + I_Method0(osgTerrain::DataSet::TextureType, getTextureType, + Properties::NON_VIRTUAL, + __TextureType__getTextureType, + "", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, d, + Properties::NON_VIRTUAL, + __void__setMaxAnisotropy__float, + "", + ""); + I_Method0(float, getMaxAnisotropy, + Properties::NON_VIRTUAL, + __float__getMaxAnisotropy, + "", + ""); + I_Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode, + Properties::NON_VIRTUAL, + __void__setMipMappingMode__MipMappingMode, + "", + ""); + I_Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode, + Properties::NON_VIRTUAL, + __MipMappingMode__getMipMappingMode, + "", + ""); + I_Method1(void, setUseLocalTileTransform, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseLocalTileTransform__bool, + "", + ""); + I_Method0(bool, getUseLocalTileTransform, + Properties::NON_VIRTUAL, + __bool__getUseLocalTileTransform, + "", + ""); + I_Method1(void, setSimplifyTerrain, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSimplifyTerrain__bool, + "", + ""); + I_Method0(bool, getSimplifyTerrain, + Properties::NON_VIRTUAL, + __bool__getSimplifyTerrain, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDecorateGeneratedSceneGraphWithCoordinateSystemNode__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + Properties::NON_VIRTUAL, + __bool__getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDecorateGeneratedSceneGraphWithMultiTextureControl__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl, + Properties::NON_VIRTUAL, + __bool__getDecorateGeneratedSceneGraphWithMultiTextureControl, + "", + ""); + I_Method0(unsigned int, getNumOfTextureLevels, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOfTextureLevels, + "", + ""); + I_Method1(void, setCommentString, IN, const std::string &, comment, + Properties::NON_VIRTUAL, + __void__setCommentString__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommentString, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommentString, + "", + ""); + I_Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setWriteNodeBeforeSimplification__bool, + "", + ""); + I_Method0(bool, getWriteNodeBeforeSimplification, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__computeDestinationGraphFromSources__unsigned_int, + "", + ""); + I_Method0(void, updateSourcesForDestinationGraphNeeds, + Properties::NON_VIRTUAL, + __void__updateSourcesForDestinationGraphNeeds, + "", + ""); + I_Method0(void, populateDestinationGraphFromSources, + Properties::NON_VIRTUAL, + __void__populateDestinationGraphFromSources, + "", + ""); + I_Method1(void, createDestination, IN, unsigned int, numLevels, + Properties::NON_VIRTUAL, + __void__createDestination__unsigned_int, + "", + ""); + I_Method0(void, buildDestination, + Properties::NON_VIRTUAL, + __void__buildDestination, + "", + ""); + I_Method0(void, writeDestination, + Properties::NON_VIRTUAL, + __void__writeDestination, + "", + ""); + I_Method0(osg::Node *, getDestinationRootNode, + Properties::NON_VIRTUAL, + __osg_Node_P1__getDestinationRootNode, + "", + ""); + I_Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void___writeNodeFile__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void___writeImageFile__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile, + Properties::NON_VIRTUAL, + __void__insertTileToQuadMap__CompositeDestination_P1, + "", + ""); + I_Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __CompositeDestination_P1__getComposite__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y, + Properties::NON_VIRTUAL, + __Row_R1__getRow__unsigned_int__unsigned_int, + "", + ""); + I_Constructor0(____DataSet, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source, + Properties::NON_VIRTUAL, + __void__addSource__Source_P1, + "", + ""); + I_Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite, + Properties::NON_VIRTUAL, + __void__addSource__CompositeSource_P1, + "", + ""); + I_Method0(void, loadSources, + Properties::NON_VIRTUAL, + __void__loadSources, + "", + ""); + I_Method1(void, setMaximumTileImageSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaximumTileImageSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileImageSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumTileImageSize, + "", + ""); + I_Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaximumTileTerrainSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaximumTileTerrainSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaximumTileTerrainSize, + "", + ""); + I_Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d, + Properties::NON_VIRTUAL, + __void__setMaximumVisibleDistanceOfTopLevel__float, + "", + ""); + I_Method0(float, getMaximumVisibleDistanceOfTopLevel, + Properties::NON_VIRTUAL, + __float__getMaximumVisibleDistanceOfTopLevel, + "", + ""); + I_Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setRadiusToMaxVisibleDistanceRatio__float, + "", + ""); + I_Method0(float, getRadiusToMaxVisibleDistanceRatio, + Properties::NON_VIRTUAL, + __float__getRadiusToMaxVisibleDistanceRatio, + "", + ""); + I_Method1(void, setVerticalScale, IN, float, verticalScale, + Properties::NON_VIRTUAL, + __void__setVerticalScale__float, + "", + ""); + I_Method0(float, getVerticalScale, + Properties::NON_VIRTUAL, + __float__getVerticalScale, + "", + ""); + I_Method1(void, setSkirtRatio, IN, float, skirtRatio, + Properties::NON_VIRTUAL, + __void__setSkirtRatio__float, + "", + ""); + I_Method0(float, getSkirtRatio, + Properties::NON_VIRTUAL, + __float__getSkirtRatio, + "", + ""); + I_Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor, + Properties::NON_VIRTUAL, + __void__setDefaultColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultColor, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setDestinationCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setDestinationCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getDestinationCoordinateSystem, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setIntermediateCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setIntermediateCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getIntermediateCoordinateSystem, + "", + ""); + I_Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setConvertFromGeographicToGeocentric__bool, + "", + ""); + I_Method0(bool, getConvertFromGeographicToGeocentric, + Properties::NON_VIRTUAL, + __bool__getConvertFromGeographicToGeocentric, + "", + ""); + I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et, + Properties::NON_VIRTUAL, + __void__setEllipsoidModel__osg_EllipsoidModel_P1, + "", + ""); + I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __C5_osg_EllipsoidModel_P1__getEllipsoidModel, + "", + ""); + I_Method0(bool, mapLatLongsToXYZ, + Properties::NON_VIRTUAL, + __bool__mapLatLongsToXYZ, + "", + ""); + I_Method1(void, setDestinationExtents, IN, const osgTerrain::GeospatialExtents &, extents, + Properties::NON_VIRTUAL, + __void__setDestinationExtents__C5_GeospatialExtents_R1, + "", + ""); + I_Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform, + Properties::NON_VIRTUAL, + __void__setDestinationGeoTransform__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(void, setArchiveName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setArchiveName__C5_std_string_R1, + "Set the Archive name if one is to be used. ", + ""); + I_Method0(const std::string &, getArchiveName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getArchiveName, + "Get the Archive name. ", + ""); + I_Method1(void, setArchive, IN, osgDB::Archive *, archive, + Properties::NON_VIRTUAL, + __void__setArchive__osgDB_Archive_P1, + "Set the Archive. ", + ""); + I_Method0(osgDB::Archive *, getArchive, + Properties::NON_VIRTUAL, + __osgDB_Archive_P1__getArchive, + "Get the Archive if one is to being used. ", + ""); + I_Method1(void, setDestinationName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setDirectory__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDirectory, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDirectory, + "", + ""); + I_Method1(void, setDestinationTileBaseName, IN, const std::string &, basename, + Properties::NON_VIRTUAL, + __void__setDestinationTileBaseName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileBaseName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationTileBaseName, + "", + ""); + I_Method1(void, setDestinationTileExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, + __void__setDestinationTileExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationTileExtension, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationTileExtension, + "", + ""); + I_Method1(void, setDestinationImageExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, + __void__setDestinationImageExtension__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDestinationImageExtension, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDestinationImageExtension, + "", + ""); + I_Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type, + Properties::NON_VIRTUAL, + __void__setDatabaseType__DatabaseType, + "", + ""); + I_Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType, + Properties::NON_VIRTUAL, + __DatabaseType__getDatabaseType, + "", + ""); + I_Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type, + Properties::NON_VIRTUAL, + __void__setGeometryType__GeometryType, + "", + ""); + I_Method0(osgTerrain::DataSet::GeometryType, getGeometryType, + Properties::NON_VIRTUAL, + __GeometryType__getGeometryType, + "", + ""); + I_Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type, + Properties::NON_VIRTUAL, + __void__setTextureType__TextureType, + "", + ""); + I_Method0(osgTerrain::DataSet::TextureType, getTextureType, + Properties::NON_VIRTUAL, + __TextureType__getTextureType, + "", + ""); + I_Method1(void, setMaxAnisotropy, IN, float, d, + Properties::NON_VIRTUAL, + __void__setMaxAnisotropy__float, + "", + ""); + I_Method0(float, getMaxAnisotropy, + Properties::NON_VIRTUAL, + __float__getMaxAnisotropy, + "", + ""); + I_Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode, + Properties::NON_VIRTUAL, + __void__setMipMappingMode__MipMappingMode, + "", + ""); + I_Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode, + Properties::NON_VIRTUAL, + __MipMappingMode__getMipMappingMode, + "", + ""); + I_Method1(void, setUseLocalTileTransform, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseLocalTileTransform__bool, + "", + ""); + I_Method0(bool, getUseLocalTileTransform, + Properties::NON_VIRTUAL, + __bool__getUseLocalTileTransform, + "", + ""); + I_Method1(void, setSimplifyTerrain, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSimplifyTerrain__bool, + "", + ""); + I_Method0(bool, getSimplifyTerrain, + Properties::NON_VIRTUAL, + __bool__getSimplifyTerrain, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDecorateGeneratedSceneGraphWithCoordinateSystemNode__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + Properties::NON_VIRTUAL, + __bool__getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + "", + ""); + I_Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDecorateGeneratedSceneGraphWithMultiTextureControl__bool, + "", + ""); + I_Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl, + Properties::NON_VIRTUAL, + __bool__getDecorateGeneratedSceneGraphWithMultiTextureControl, + "", + ""); + I_Method0(unsigned int, getNumOfTextureLevels, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOfTextureLevels, + "", + ""); + I_Method1(void, setCommentString, IN, const std::string &, comment, + Properties::NON_VIRTUAL, + __void__setCommentString__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommentString, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommentString, + "", + ""); + I_Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setWriteNodeBeforeSimplification__bool, + "", + ""); + I_Method0(bool, getWriteNodeBeforeSimplification, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__computeDestinationGraphFromSources__unsigned_int, + "", + ""); + I_Method0(void, updateSourcesForDestinationGraphNeeds, + Properties::NON_VIRTUAL, + __void__updateSourcesForDestinationGraphNeeds, + "", + ""); + I_Method0(void, populateDestinationGraphFromSources, + Properties::NON_VIRTUAL, + __void__populateDestinationGraphFromSources, + "", + ""); + I_Method1(void, createDestination, IN, unsigned int, numLevels, + Properties::NON_VIRTUAL, + __void__createDestination__unsigned_int, + "", + ""); + I_Method0(void, buildDestination, + Properties::NON_VIRTUAL, + __void__buildDestination, + "", + ""); + I_Method0(void, writeDestination, + Properties::NON_VIRTUAL, + __void__writeDestination, + "", + ""); + I_Method0(osg::Node *, getDestinationRootNode, + Properties::NON_VIRTUAL, + __osg_Node_P1__getDestinationRootNode, + "", + ""); + I_Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void___writeNodeFile__C5_osg_Node_R1__C5_std_string_R1, + "", + ""); + I_Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void___writeImageFile__C5_osg_Image_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __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_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); @@ -609,6 +2042,80 @@ 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_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + 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, + Properties::NON_VIRTUAL, + __void__computeNeighboursFromQuadMap, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, + __void__equalizeBoundaries, + "", + ""); + I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(bool, areSubTilesComplete, + Properties::NON_VIRTUAL, + __bool__areSubTilesComplete, + "", + ""); + I_Method0(std::string, getSubTileName, + Properties::NON_VIRTUAL, + __std_string__getSubTileName, + "", + ""); + I_Method0(osg::Node *, createPagedLODScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createPagedLODScene, + "", + ""); + I_Method0(osg::Node *, createSubTileScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createSubTileScene, + "", + ""); + I_Method0(void, unrefSubTileData, + Properties::NON_VIRTUAL, + __void__unrefSubTileData, + "", + ""); + I_Method0(void, unrefLocalData, + Properties::NON_VIRTUAL, + __void__unrefLocalData, + "", + ""); + I_Method1(void, setSubTilesGenerated, IN, bool, generated, + Properties::NON_VIRTUAL, + __void__setSubTilesGenerated__bool, + "", + ""); + I_Method0(bool, getSubTilesGenerated, + Properties::NON_VIRTUAL, + __bool__getSubTilesGenerated, + "", + ""); I_Constructor0(____CompositeDestination, "", ""); @@ -698,6 +2205,182 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeDestination) I_PublicMemberProperty(osgTerrain::DataSet::CompositeDestination::ChildList, _children); I_PublicMemberProperty(float, _maxVisibleDistance); I_PublicMemberProperty(bool, _subTileGenerated); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(osgTerrain::DataSet::CompositeDestination *, _parent); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::DestinationTile > >, osgTerrain::DataSet::CompositeDestination::TileList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > >, osgTerrain::DataSet::CompositeDestination::ChildList); + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeDestination) + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + 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, + Properties::NON_VIRTUAL, + __void__computeNeighboursFromQuadMap, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, + __void__equalizeBoundaries, + "", + ""); + I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(bool, areSubTilesComplete, + Properties::NON_VIRTUAL, + __bool__areSubTilesComplete, + "", + ""); + I_Method0(std::string, getSubTileName, + Properties::NON_VIRTUAL, + __std_string__getSubTileName, + "", + ""); + I_Method0(osg::Node *, createPagedLODScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createPagedLODScene, + "", + ""); + I_Method0(osg::Node *, createSubTileScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createSubTileScene, + "", + ""); + I_Method0(void, unrefSubTileData, + Properties::NON_VIRTUAL, + __void__unrefSubTileData, + "", + ""); + I_Method0(void, unrefLocalData, + Properties::NON_VIRTUAL, + __void__unrefLocalData, + "", + ""); + I_Method1(void, setSubTilesGenerated, IN, bool, generated, + Properties::NON_VIRTUAL, + __void__setSubTilesGenerated__bool, + "", + ""); + I_Method0(bool, getSubTilesGenerated, + Properties::NON_VIRTUAL, + __bool__getSubTilesGenerated, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __void__computeNeighboursFromQuadMap, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, + __void__equalizeBoundaries, + "", + ""); + I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(bool, areSubTilesComplete, + Properties::NON_VIRTUAL, + __bool__areSubTilesComplete, + "", + ""); + I_Method0(std::string, getSubTileName, + Properties::NON_VIRTUAL, + __std_string__getSubTileName, + "", + ""); + I_Method0(osg::Node *, createPagedLODScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createPagedLODScene, + "", + ""); + I_Method0(osg::Node *, createSubTileScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createSubTileScene, + "", + ""); + I_Method0(void, unrefSubTileData, + Properties::NON_VIRTUAL, + __void__unrefSubTileData, + "", + ""); + I_Method0(void, unrefLocalData, + Properties::NON_VIRTUAL, + __void__unrefLocalData, + "", + ""); + I_Method1(void, setSubTilesGenerated, IN, bool, generated, + Properties::NON_VIRTUAL, + __void__setSubTilesGenerated__bool, + "", + ""); + I_Method0(bool, getSubTilesGenerated, + Properties::NON_VIRTUAL, + __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); + I_PublicMemberProperty(unsigned int, _level); + I_PublicMemberProperty(unsigned int, _tileX); + I_PublicMemberProperty(unsigned int, _tileY); + I_PublicMemberProperty(osgTerrain::DataSet::CompositeType, _type); + I_PublicMemberProperty(osgTerrain::DataSet::CompositeDestination::TileList, _tiles); + I_PublicMemberProperty(osgTerrain::DataSet::CompositeDestination::ChildList, _children); + I_PublicMemberProperty(float, _maxVisibleDistance); + I_PublicMemberProperty(bool, _subTileGenerated); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(osgTerrain::DataSet::CompositeDestination *, _parent); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::Source > >, osgTerrain::DataSet::CompositeSource::SourceList); @@ -711,6 +2394,104 @@ 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_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP, + Properties::NON_EXPLICIT, + ____CompositeSource__CompositeType, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type, + Properties::NON_VIRTUAL, + __void__setType__CompositeType, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeType, getType, + Properties::NON_VIRTUAL, + __CompositeType__getType, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method0(void, sort, + Properties::NON_VIRTUAL, + __void__sort, + "", + ""); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP, + Properties::NON_EXPLICIT, + ____CompositeSource__CompositeType, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type, + Properties::NON_VIRTUAL, + __void__setType__CompositeType, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeType, getType, + Properties::NON_VIRTUAL, + __CompositeType__getType, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method0(void, sort, + Properties::NON_VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::Source > >, osgTerrain::DataSet::CompositeSource::SourceList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeSource > >, osgTerrain::DataSet::CompositeSource::ChildList); + +TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer >, osgTerrain::DataSet::CompositeSource::source_iterator); + +TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer >, osgTerrain::DataSet::CompositeSource::source_lod_iterator); + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeSource) + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP, + Properties::NON_EXPLICIT, + ____CompositeSource__CompositeType, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type, + Properties::NON_VIRTUAL, + __void__setType__CompositeType, + "", + ""); + I_Method0(osgTerrain::DataSet::CompositeType, getType, + Properties::NON_VIRTUAL, + __CompositeType__getType, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method0(void, sort, + Properties::NON_VIRTUAL, + __void__sort, + "", + ""); I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP, Properties::NON_EXPLICIT, ____CompositeSource__CompositeType, @@ -758,6 +2539,48 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::DefaultSourceAdvance __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, "", ""); + I_Constructor0(____DefaultSourceAdvancer, + "", + ""); + I_Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, x, IN, int, x, + Properties::NON_VIRTUAL, + __bool__isActive__C5_CompositeSource_R1__int, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer) + I_Constructor0(____DefaultSourceAdvancer, + "", + ""); + I_Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, x, IN, int, x, + Properties::NON_VIRTUAL, + __bool__isActive__C5_CompositeSource_R1__int, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); + I_Constructor0(____DefaultSourceAdvancer, + "", + ""); + I_Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, x, IN, int, x, + Properties::NON_VIRTUAL, + __bool__isActive__C5_CompositeSource_R1__int, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator::IteratorMode) @@ -785,9 +2608,108 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator) __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, + Properties::NON_EXPLICIT, + ____iterator__C5_iterator_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, advance, + Properties::NON_VIRTUAL, + __bool__advance, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator::IteratorMode) + I_EnumLabel(osgTerrain::DataSet::CompositeSource::iterator::ACTIVE); + I_EnumLabel(osgTerrain::DataSet::CompositeSource::iterator::ALL); +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, + ____iterator__CompositeSource_P1__IteratorMode, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::iterator &, rhs, + Properties::NON_EXPLICIT, + ____iterator__C5_iterator_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, advance, + Properties::NON_VIRTUAL, + __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, + Properties::NON_EXPLICIT, + ____iterator__C5_iterator_R1, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, advance, + Properties::NON_VIRTUAL, + __bool__advance, + "", + ""); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::LODSourceAdvancer) + I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f, + Properties::NON_EXPLICIT, + ____LODSourceAdvancer__float, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f, + Properties::NON_EXPLICIT, + ____LODSourceAdvancer__float, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); + I_PublicMemberProperty(float, _targetResolution); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::LODSourceAdvancer) + I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f, + Properties::NON_EXPLICIT, + ____LODSourceAdvancer__float, + "", + ""); + I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, + __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, + "", + ""); I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f, Properties::NON_EXPLICIT, ____LODSourceAdvancer__float, @@ -807,6 +2729,12 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osgTerrain::DataSet::D BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationData) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, osgTerrain::DataSet *, dataSet, + Properties::NON_EXPLICIT, + ____DestinationData__DataSet_P1, + "", + ""); I_Constructor1(IN, osgTerrain::DataSet *, dataSet, Properties::NON_EXPLICIT, ____DestinationData__DataSet_P1, @@ -818,6 +2746,37 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationData) I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); I_PublicMemberProperty(osg::ref_ptr< osg::HeightField >, _heightField); I_PublicMemberProperty(osgTerrain::DataSet::DestinationData::ModelList, _models); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); + I_PublicMemberProperty(osg::ref_ptr< osg::HeightField >, _heightField); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Image > >, osgTerrain::DataSet::DestinationData::ImageList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osgTerrain::DataSet::DestinationData::ModelList); + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationData) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, osgTerrain::DataSet *, dataSet, + Properties::NON_EXPLICIT, + ____DestinationData__DataSet_P1, + "", + ""); + I_Constructor1(IN, osgTerrain::DataSet *, dataSet, + Properties::NON_EXPLICIT, + ____DestinationData__DataSet_P1, + "", + ""); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(float, _minDistance); + I_PublicMemberProperty(float, _maxDistance); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); + I_PublicMemberProperty(osg::ref_ptr< osg::HeightField >, _heightField); + I_PublicMemberProperty(osgTerrain::DataSet::DestinationData::ModelList, _models); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); + I_PublicMemberProperty(osg::ref_ptr< osg::HeightField >, _heightField); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgTerrain::DataSet::DestinationTile::HeightDeltaList); @@ -837,6 +2796,131 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_Constructor0(____DestinationTile, + "", + ""); + I_Method0(void, computeNeighboursFromQuadMap, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setNeighbours__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1, + "", + ""); + I_Method0(void, checkNeighbouringTiles, + Properties::NON_VIRTUAL, + __void__checkNeighbouringTiles, + "", + ""); + I_Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, + __void__setMaximumImagerySize__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, + __void__setMaximumTerrainSize__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__computeTerrainResolution__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method0(void, allocate, + Properties::NON_VIRTUAL, + __void__allocate, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, allocateEdgeNormals, + Properties::NON_VIRTUAL, + __void__allocateEdgeNormals, + "", + ""); + I_Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, + __void__equalizeCorner__Position, + "", + ""); + I_Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, + __void__equalizeEdge__Position, + "", + ""); + I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, + __void__equalizeBoundaries, + "", + ""); + I_Method1(void, setTileComplete, IN, bool, complete, + Properties::NON_VIRTUAL, + __void__setTileComplete__bool, + "", + ""); + I_Method0(bool, getTileComplete, + Properties::NON_VIRTUAL, + __bool__getTileComplete, + "", + ""); + I_Method0(void, optimizeResolution, + Properties::NON_VIRTUAL, + __void__optimizeResolution, + "", + ""); + I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(osg::StateSet *, createStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__createStateSet, + "", + ""); + I_Method0(osg::Node *, createHeightField, + Properties::NON_VIRTUAL, + __osg_Node_P1__createHeightField, + "", + ""); + I_Method0(osg::Node *, createPolygonal, + Properties::NON_VIRTUAL, + __osg_Node_P1__createPolygonal, + "", + ""); + I_Method0(void, unrefData, + Properties::NON_VIRTUAL, + __void__unrefData, + "", + ""); + I_Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer, + Properties::NON_VIRTUAL, + __ImageData_R1__getImageData__unsigned_int, + "", + ""); I_Constructor0(____DestinationTile, "", ""); @@ -980,15 +3064,327 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) I_PublicMemberProperty(float, _terrain_maxSourceResolutionX); I_PublicMemberProperty(float, _terrain_maxSourceResolutionY); I_PublicMemberProperty(bool, _complete); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(std::vector< osgTerrain::DataSet::DestinationTile::ImageData >, _imagery); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _terrain); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _models); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgTerrain::DataSet::DestinationTile::HeightDeltaList); + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::DestinationTile::Position) + I_EnumLabel(osgTerrain::DataSet::DestinationTile::LEFT); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::LEFT_BELOW); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::BELOW); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::BELOW_RIGHT); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::RIGHT); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::RIGHT_ABOVE); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::ABOVE); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::ABOVE_LEFT); + I_EnumLabel(osgTerrain::DataSet::DestinationTile::NUMBER_OF_POSITIONS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_Constructor0(____DestinationTile, + "", + ""); + I_Method0(void, computeNeighboursFromQuadMap, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setNeighbours__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1, + "", + ""); + I_Method0(void, checkNeighbouringTiles, + Properties::NON_VIRTUAL, + __void__checkNeighbouringTiles, + "", + ""); + I_Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, + __void__setMaximumImagerySize__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, + __void__setMaximumTerrainSize__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__computeTerrainResolution__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method0(void, allocate, + Properties::NON_VIRTUAL, + __void__allocate, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, allocateEdgeNormals, + Properties::NON_VIRTUAL, + __void__allocateEdgeNormals, + "", + ""); + I_Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, + __void__equalizeCorner__Position, + "", + ""); + I_Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, + __void__equalizeEdge__Position, + "", + ""); + I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, + __void__equalizeBoundaries, + "", + ""); + I_Method1(void, setTileComplete, IN, bool, complete, + Properties::NON_VIRTUAL, + __void__setTileComplete__bool, + "", + ""); + I_Method0(bool, getTileComplete, + Properties::NON_VIRTUAL, + __bool__getTileComplete, + "", + ""); + I_Method0(void, optimizeResolution, + Properties::NON_VIRTUAL, + __void__optimizeResolution, + "", + ""); + I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(osg::StateSet *, createStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__createStateSet, + "", + ""); + I_Method0(osg::Node *, createHeightField, + Properties::NON_VIRTUAL, + __osg_Node_P1__createHeightField, + "", + ""); + I_Method0(osg::Node *, createPolygonal, + Properties::NON_VIRTUAL, + __osg_Node_P1__createPolygonal, + "", + ""); + I_Method0(void, unrefData, + Properties::NON_VIRTUAL, + __void__unrefData, + "", + ""); + I_Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer, + Properties::NON_VIRTUAL, + __ImageData_R1__getImageData__unsigned_int, + "", + ""); + I_Constructor0(____DestinationTile, + "", + ""); + I_Method0(void, computeNeighboursFromQuadMap, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setNeighbours__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1, + "", + ""); + I_Method0(void, checkNeighbouringTiles, + Properties::NON_VIRTUAL, + __void__checkNeighbouringTiles, + "", + ""); + I_Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, + __void__setMaximumImagerySize__unsigned_int__unsigned_int, + "", + ""); + I_Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, + __void__setMaximumTerrainSize__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__computeTerrainResolution__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method0(void, allocate, + Properties::NON_VIRTUAL, + __void__allocate, + "", + ""); + I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__addRequiredResolutions__CompositeSource_P1, + "", + ""); + I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, + __void__readFrom__CompositeSource_P1, + "", + ""); + I_Method0(void, allocateEdgeNormals, + Properties::NON_VIRTUAL, + __void__allocateEdgeNormals, + "", + ""); + I_Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, + __void__equalizeCorner__Position, + "", + ""); + I_Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, + __void__equalizeEdge__Position, + "", + ""); + I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, + __void__equalizeBoundaries, + "", + ""); + I_Method1(void, setTileComplete, IN, bool, complete, + Properties::NON_VIRTUAL, + __void__setTileComplete__bool, + "", + ""); + I_Method0(bool, getTileComplete, + Properties::NON_VIRTUAL, + __bool__getTileComplete, + "", + ""); + I_Method0(void, optimizeResolution, + Properties::NON_VIRTUAL, + __void__optimizeResolution, + "", + ""); + I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__createScene, + "", + ""); + I_Method0(osg::StateSet *, createStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__createStateSet, + "", + ""); + I_Method0(osg::Node *, createHeightField, + Properties::NON_VIRTUAL, + __osg_Node_P1__createHeightField, + "", + ""); + I_Method0(osg::Node *, createPolygonal, + Properties::NON_VIRTUAL, + __osg_Node_P1__createPolygonal, + "", + ""); + I_Method0(void, unrefData, + Properties::NON_VIRTUAL, + __void__unrefData, + "", + ""); + I_Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer, + Properties::NON_VIRTUAL, + __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); + I_PublicMemberProperty(unsigned int, _tileX); + I_PublicMemberProperty(unsigned int, _tileY); + I_PublicMemberProperty(GLenum, _pixelFormat); + I_PublicMemberProperty(std::vector< osgTerrain::DataSet::DestinationTile::ImageData >, _imagery); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _terrain); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _models); + I_PublicMemberProperty(unsigned int, _maxSourceLevel); + I_PublicMemberProperty(unsigned int, _imagery_maxNumColumns); + I_PublicMemberProperty(unsigned int, _imagery_maxNumRows); + I_PublicMemberProperty(unsigned int, _terrain_maxNumColumns); + I_PublicMemberProperty(unsigned int, _terrain_maxNumRows); + I_PublicMemberProperty(float, _terrain_maxSourceResolutionX); + I_PublicMemberProperty(float, _terrain_maxSourceResolutionY); + I_PublicMemberProperty(bool, _complete); + I_PublicMemberProperty(osgTerrain::DataSet *, _dataSet); + I_PublicMemberProperty(std::vector< osgTerrain::DataSet::DestinationTile::ImageData >, _imagery); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _terrain); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _models); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::DestinationTile::ImageData) + I_Constructor0(____ImageData, + "", + ""); I_Constructor0(____ImageData, "", ""); I_PublicMemberProperty(float, _imagery_maxSourceResolutionX); I_PublicMemberProperty(float, _imagery_maxSourceResolutionY); I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _imagery); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _imagery); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::DestinationTile::ImageData) + I_Constructor0(____ImageData, + "", + ""); + I_Constructor0(____ImageData, + "", + ""); + I_PublicMemberProperty(float, _imagery_maxSourceResolutionX); + I_PublicMemberProperty(float, _imagery_maxSourceResolutionY); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _imagery); + I_PublicMemberProperty(osg::ref_ptr< osgTerrain::DataSet::DestinationData >, _imagery); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osgTerrain::DataSet::Source::ResolutionPair >, osgTerrain::DataSet::Source::ResolutionList); @@ -1008,6 +3404,737 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + 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, + Properties::NON_VIRTUAL, + __void__setSortValue__double, + "", + ""); + I_Method0(double, getSortValue, + Properties::NON_VIRTUAL, + __double__getSortValue, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type, + Properties::NON_VIRTUAL, + __void__setType__Type, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName, + "", + ""); + I_Method1(void, setTemporaryFile, IN, bool, temporaryFile, + Properties::NON_VIRTUAL, + __void__setTemporaryFile__bool, + "", + ""); + I_Method0(bool, getTemporaryFile, + Properties::NON_VIRTUAL, + __bool__getTemporaryFile, + "", + ""); + I_Method1(void, setGdalDataset, IN, void *, gdalDataset, + Properties::NON_VIRTUAL, + __void__setGdalDataset__void_P1, + "", + ""); + I_Method0(void *, getGdalDataset, + Properties::NON_VIRTUAL, + __void_P1__getGdalDataset, + "", + ""); + I_Method0(const void *, getGdalDataset, + Properties::NON_VIRTUAL, + __C5_void_P1__getGdalDataset, + "", + ""); + I_Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy, + Properties::NON_VIRTUAL, + __ParameterPolicy__getCoordinateSystemPolicy, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getCoordinateSystem, + "", + ""); + I_Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, + __void__setGeoTransformPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy, + Properties::NON_VIRTUAL, + __ParameterPolicy__getGeoTransformPolicy, + "", + ""); + I_Method1(void, setGeoTransform, IN, osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setGeoTransform__osg_Matrixd_R1, + "", + ""); + I_Method0(osg::Matrixd &, getGeoTransform, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getGeoTransform, + "", + ""); + I_Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax, + Properties::NON_VIRTUAL, + __void__setGeoTransformFromRange__double__double__double__double, + "", + ""); + I_Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + Properties::NON_VIRTUAL, + __void__assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + "", + ""); + I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + Properties::NON_VIRTUAL, + __void__setMinLevel__unsigned_int, + "", + ""); + I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMaxLevel__unsigned_int, + "", + ""); + I_Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMinMaxLevel__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMinLevel, + "", + ""); + I_Method0(unsigned int, getMaxLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxLevel, + "", + ""); + I_Method1(void, setLayer, IN, unsigned int, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getLayer, + Properties::NON_VIRTUAL, + __unsigned_int__getLayer, + "", + ""); + I_Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data, + Properties::NON_VIRTUAL, + __void__setSourceData__SourceData_P1, + "", + ""); + I_Method0(osgTerrain::DataSet::SourceData *, getSourceData, + Properties::NON_VIRTUAL, + __SourceData_P1__getSourceData, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, loadSourceData, + Properties::NON_VIRTUAL, + __void__loadSourceData, + "", + ""); + I_Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __bool__needReproject__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Source_P1__doReproject__C5_std_string_R1__osg_CoordinateSystemNode_P1__double, + "", + ""); + I_Method0(void, buildOverviews, + Properties::NON_VIRTUAL, + __void__buildOverviews, + "", + ""); + I_Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY, + Properties::NON_VIRTUAL, + __void__addRequiredResolution__double__double, + "", + ""); + I_Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions, + Properties::NON_VIRTUAL, + __void__setRequiredResolutions__ResolutionList_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, + __ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, + __C5_ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(void, consolodateRequiredResolutions, + Properties::NON_VIRTUAL, + __void__consolodateRequiredResolutions, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setSortValue__double, + "", + ""); + I_Method0(double, getSortValue, + Properties::NON_VIRTUAL, + __double__getSortValue, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type, + Properties::NON_VIRTUAL, + __void__setType__Type, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName, + "", + ""); + I_Method1(void, setTemporaryFile, IN, bool, temporaryFile, + Properties::NON_VIRTUAL, + __void__setTemporaryFile__bool, + "", + ""); + I_Method0(bool, getTemporaryFile, + Properties::NON_VIRTUAL, + __bool__getTemporaryFile, + "", + ""); + I_Method1(void, setGdalDataset, IN, void *, gdalDataset, + Properties::NON_VIRTUAL, + __void__setGdalDataset__void_P1, + "", + ""); + I_Method0(void *, getGdalDataset, + Properties::NON_VIRTUAL, + __void_P1__getGdalDataset, + "", + ""); + I_Method0(const void *, getGdalDataset, + Properties::NON_VIRTUAL, + __C5_void_P1__getGdalDataset, + "", + ""); + I_Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy, + Properties::NON_VIRTUAL, + __ParameterPolicy__getCoordinateSystemPolicy, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getCoordinateSystem, + "", + ""); + I_Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, + __void__setGeoTransformPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy, + Properties::NON_VIRTUAL, + __ParameterPolicy__getGeoTransformPolicy, + "", + ""); + I_Method1(void, setGeoTransform, IN, osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setGeoTransform__osg_Matrixd_R1, + "", + ""); + I_Method0(osg::Matrixd &, getGeoTransform, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getGeoTransform, + "", + ""); + I_Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax, + Properties::NON_VIRTUAL, + __void__setGeoTransformFromRange__double__double__double__double, + "", + ""); + I_Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + Properties::NON_VIRTUAL, + __void__assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + "", + ""); + I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + Properties::NON_VIRTUAL, + __void__setMinLevel__unsigned_int, + "", + ""); + I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMaxLevel__unsigned_int, + "", + ""); + I_Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMinMaxLevel__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMinLevel, + "", + ""); + I_Method0(unsigned int, getMaxLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxLevel, + "", + ""); + I_Method1(void, setLayer, IN, unsigned int, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getLayer, + Properties::NON_VIRTUAL, + __unsigned_int__getLayer, + "", + ""); + I_Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data, + Properties::NON_VIRTUAL, + __void__setSourceData__SourceData_P1, + "", + ""); + I_Method0(osgTerrain::DataSet::SourceData *, getSourceData, + Properties::NON_VIRTUAL, + __SourceData_P1__getSourceData, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, loadSourceData, + Properties::NON_VIRTUAL, + __void__loadSourceData, + "", + ""); + I_Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __bool__needReproject__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Source_P1__doReproject__C5_std_string_R1__osg_CoordinateSystemNode_P1__double, + "", + ""); + I_Method0(void, buildOverviews, + Properties::NON_VIRTUAL, + __void__buildOverviews, + "", + ""); + I_Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY, + Properties::NON_VIRTUAL, + __void__addRequiredResolution__double__double, + "", + ""); + I_Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions, + Properties::NON_VIRTUAL, + __void__setRequiredResolutions__ResolutionList_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, + __ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, + __C5_ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(void, consolodateRequiredResolutions, + Properties::NON_VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< osgTerrain::DataSet::Source::ResolutionPair >, osgTerrain::DataSet::Source::ResolutionList); + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::Source::Type) + I_EnumLabel(osgTerrain::DataSet::Source::IMAGE); + I_EnumLabel(osgTerrain::DataSet::Source::HEIGHT_FIELD); + I_EnumLabel(osgTerrain::DataSet::Source::MODEL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::Source::ParameterPolicy) + I_EnumLabel(osgTerrain::DataSet::Source::PREFER_CONFIG_SETTINGS); + I_EnumLabel(osgTerrain::DataSet::Source::PREFER_CONFIG_SETTINGS_BUT_SCALE_BY_FILE_RESOLUTION); + I_EnumLabel(osgTerrain::DataSet::Source::PREFER_FILE_SETTINGS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + 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, + Properties::NON_VIRTUAL, + __void__setSortValue__double, + "", + ""); + I_Method0(double, getSortValue, + Properties::NON_VIRTUAL, + __double__getSortValue, + "", + ""); + I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, + __void__setSortValueFromSourceDataResolution, + "", + ""); + I_Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type, + Properties::NON_VIRTUAL, + __void__setType__Type, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::Type, getType, + Properties::NON_VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName, + "", + ""); + I_Method1(void, setTemporaryFile, IN, bool, temporaryFile, + Properties::NON_VIRTUAL, + __void__setTemporaryFile__bool, + "", + ""); + I_Method0(bool, getTemporaryFile, + Properties::NON_VIRTUAL, + __bool__getTemporaryFile, + "", + ""); + I_Method1(void, setGdalDataset, IN, void *, gdalDataset, + Properties::NON_VIRTUAL, + __void__setGdalDataset__void_P1, + "", + ""); + I_Method0(void *, getGdalDataset, + Properties::NON_VIRTUAL, + __void_P1__getGdalDataset, + "", + ""); + I_Method0(const void *, getGdalDataset, + Properties::NON_VIRTUAL, + __C5_void_P1__getGdalDataset, + "", + ""); + I_Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy, + Properties::NON_VIRTUAL, + __ParameterPolicy__getCoordinateSystemPolicy, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__C5_std_string_R1, + "", + ""); + I_Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__osg_CoordinateSystemNode_P1, + "", + ""); + I_Method0(osg::CoordinateSystemNode *, getCoordinateSystem, + Properties::NON_VIRTUAL, + __osg_CoordinateSystemNode_P1__getCoordinateSystem, + "", + ""); + I_Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, + __void__setGeoTransformPolicy__ParameterPolicy, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy, + Properties::NON_VIRTUAL, + __ParameterPolicy__getGeoTransformPolicy, + "", + ""); + I_Method1(void, setGeoTransform, IN, osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setGeoTransform__osg_Matrixd_R1, + "", + ""); + I_Method0(osg::Matrixd &, getGeoTransform, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getGeoTransform, + "", + ""); + I_Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax, + Properties::NON_VIRTUAL, + __void__setGeoTransformFromRange__double__double__double__double, + "", + ""); + I_Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + Properties::NON_VIRTUAL, + __void__assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + "", + ""); + I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + Properties::NON_VIRTUAL, + __void__setMinLevel__unsigned_int, + "", + ""); + I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMaxLevel__unsigned_int, + "", + ""); + I_Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMinMaxLevel__unsigned_int__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMinLevel, + "", + ""); + I_Method0(unsigned int, getMaxLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxLevel, + "", + ""); + I_Method1(void, setLayer, IN, unsigned int, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getLayer, + Properties::NON_VIRTUAL, + __unsigned_int__getLayer, + "", + ""); + I_Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data, + Properties::NON_VIRTUAL, + __void__setSourceData__SourceData_P1, + "", + ""); + I_Method0(osgTerrain::DataSet::SourceData *, getSourceData, + Properties::NON_VIRTUAL, + __SourceData_P1__getSourceData, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, loadSourceData, + Properties::NON_VIRTUAL, + __void__loadSourceData, + "", + ""); + I_Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __bool__needReproject__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __Source_P1__doReproject__C5_std_string_R1__osg_CoordinateSystemNode_P1__double, + "", + ""); + I_Method0(void, buildOverviews, + Properties::NON_VIRTUAL, + __void__buildOverviews, + "", + ""); + I_Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY, + Properties::NON_VIRTUAL, + __void__addRequiredResolution__double__double, + "", + ""); + I_Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions, + Properties::NON_VIRTUAL, + __void__setRequiredResolutions__ResolutionList_R1, + "", + ""); + I_Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, + __ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, + __C5_ResolutionList_R1__getRequiredResolutions, + "", + ""); + I_Method0(void, consolodateRequiredResolutions, + Properties::NON_VIRTUAL, + __void__consolodateRequiredResolutions, + "", + ""); I_Constructor0(____Source, "", ""); @@ -1275,6 +4402,32 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::Source::ResolutionPair) + I_Constructor0(____ResolutionPair, + "", + ""); + I_Constructor2(IN, double, x, IN, double, y, + ____ResolutionPair__double__double, + "", + ""); + I_Constructor0(____ResolutionPair, + "", + ""); + I_Constructor2(IN, double, x, IN, double, y, + ____ResolutionPair__double__double, + "", + ""); + I_PublicMemberProperty(double, _resX); + I_PublicMemberProperty(double, _resY); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::Source::ResolutionPair) + I_Constructor0(____ResolutionPair, + "", + ""); + I_Constructor2(IN, double, x, IN, double, y, + ____ResolutionPair__double__double, + "", + ""); I_Constructor0(____ResolutionPair, "", ""); @@ -1291,6 +4444,53 @@ 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_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0, + Properties::NON_EXPLICIT, + ____SourceData__Source_P1, + "", + ""); + I_Method1(osgTerrain::GeospatialExtents, getExtents, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __GeospatialExtents__getExtents__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __C5_SpatialProperties_R1__computeSpatialProperties__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::NON_VIRTUAL, + __void__read__DestinationData_R1, + "", + ""); + I_Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readImage__DestinationData_R1, + "", + ""); + I_Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readHeightField__DestinationData_R1, + "", + ""); + I_Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readModels__DestinationData_R1, + "", + ""); + I_Method3(float, getInterpolatedValue, IN, GDALRasterBand *, band, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + __float__getInterpolatedValue__GDALRasterBand_P1__double__double, + "", + ""); I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0, Properties::NON_EXPLICIT, ____SourceData__Source_P1, @@ -1340,14 +4540,158 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::SourceData) __SourceData_P1__readData__Source_P1_S, "", ""); + 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); I_PublicMemberProperty(GDALDataset *, _gdalDataset); I_PublicMemberProperty(osgTerrain::DataSet::SourceData::SpatialPropertiesMap, _spatialPropertiesMap); + I_PublicMemberProperty(osgTerrain::DataSet::Source *, _source); + I_PublicMemberProperty(osg::ref_ptr< osg::Node >, _model); + I_PublicMemberProperty(GDALDataset *, _gdalDataset); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::DataSet::SpatialProperties >, osgTerrain::DataSet::SourceData::SpatialPropertiesMap); + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::SourceData) + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_BaseType(osg::Referenced); + I_BaseType(osgTerrain::DataSet::SpatialProperties); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0, + Properties::NON_EXPLICIT, + ____SourceData__Source_P1, + "", + ""); + I_Method1(osgTerrain::GeospatialExtents, getExtents, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __GeospatialExtents__getExtents__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __C5_SpatialProperties_R1__computeSpatialProperties__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::NON_VIRTUAL, + __void__read__DestinationData_R1, + "", + ""); + I_Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readImage__DestinationData_R1, + "", + ""); + I_Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readHeightField__DestinationData_R1, + "", + ""); + I_Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readModels__DestinationData_R1, + "", + ""); + I_Method3(float, getInterpolatedValue, IN, GDALRasterBand *, band, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + __float__getInterpolatedValue__GDALRasterBand_P1__double__double, + "", + ""); + I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0, + Properties::NON_EXPLICIT, + ____SourceData__Source_P1, + "", + ""); + I_Method1(osgTerrain::GeospatialExtents, getExtents, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __GeospatialExtents__getExtents__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, + __C5_SpatialProperties_R1__computeSpatialProperties__C5_osg_CoordinateSystemNode_P1, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, + __bool__intersects__C5_SpatialProperties_R1, + "", + ""); + I_Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::NON_VIRTUAL, + __void__read__DestinationData_R1, + "", + ""); + I_Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readImage__DestinationData_R1, + "", + ""); + I_Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readHeightField__DestinationData_R1, + "", + ""); + I_Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, + __void__readModels__DestinationData_R1, + "", + ""); + I_Method3(float, getInterpolatedValue, IN, GDALRasterBand *, band, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + __float__getInterpolatedValue__GDALRasterBand_P1__double__double, + "", + ""); + I_StaticMethod1(osgTerrain::DataSet::SourceData *, readData, IN, osgTerrain::DataSet::Source *, source, + __SourceData_P1__readData__Source_P1_S, + "", + ""); + 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); + I_PublicMemberProperty(GDALDataset *, _gdalDataset); + I_PublicMemberProperty(osgTerrain::DataSet::SourceData::SpatialPropertiesMap, _spatialPropertiesMap); + I_PublicMemberProperty(osgTerrain::DataSet::Source *, _source); + I_PublicMemberProperty(osg::ref_ptr< osg::Node >, _model); + I_PublicMemberProperty(GDALDataset *, _gdalDataset); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) + I_Constructor0(____SpatialProperties, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __SpatialProperties_R1__assignSpatialProperties__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, computeExtents, + Properties::NON_VIRTUAL, + __void__computeExtents, + "", + ""); I_Constructor0(____SpatialProperties, "", ""); @@ -1376,9 +4720,156 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) I_PublicMemberProperty(unsigned int, _numValuesX); I_PublicMemberProperty(unsigned int, _numValuesY); I_PublicMemberProperty(unsigned int, _numValuesZ); + I_PublicMemberProperty(osg::ref_ptr< osg::CoordinateSystemNode >, _cs); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) + I_Constructor0(____SpatialProperties, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __SpatialProperties_R1__assignSpatialProperties__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, computeExtents, + Properties::NON_VIRTUAL, + __void__computeExtents, + "", + ""); + I_Constructor0(____SpatialProperties, + "", + ""); + I_Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __SpatialProperties_R1__assignSpatialProperties__C5_SpatialProperties_R1, + "", + ""); + I_Method0(void, computeExtents, + Properties::NON_VIRTUAL, + __void__computeExtents, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::CoordinateSystemNode >, _cs); + I_PublicMemberProperty(osg::Matrixd, _geoTransform); + I_PublicMemberProperty(osgTerrain::GeospatialExtents, _extents); + I_PublicMemberProperty(unsigned int, _numValuesX); + I_PublicMemberProperty(unsigned int, _numValuesY); + I_PublicMemberProperty(unsigned int, _numValuesZ); + I_PublicMemberProperty(osg::ref_ptr< osg::CoordinateSystemNode >, _cs); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::GeospatialExtents) + 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, + Properties::NON_VIRTUAL, + __double_R1__xMin, + "", + ""); + I_Method0(double, xMin, + Properties::NON_VIRTUAL, + __double__xMin, + "", + ""); + I_Method0(double &, yMin, + Properties::NON_VIRTUAL, + __double_R1__yMin, + "", + ""); + I_Method0(double, yMin, + Properties::NON_VIRTUAL, + __double__yMin, + "", + ""); + I_Method0(double &, xMax, + Properties::NON_VIRTUAL, + __double_R1__xMax, + "", + ""); + I_Method0(double, xMax, + Properties::NON_VIRTUAL, + __double__xMax, + "", + ""); + I_Method0(double &, yMax, + Properties::NON_VIRTUAL, + __double_R1__yMax, + "", + ""); + I_Method0(double, yMax, + Properties::NON_VIRTUAL, + __double__yMax, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(double, radius, + Properties::NON_VIRTUAL, + __double__radius, + "", + ""); + I_Method0(double, radius2, + Properties::NON_VIRTUAL, + __double__radius2, + "", + ""); + I_Method2(osgTerrain::GeospatialExtents, intersection, IN, const osgTerrain::GeospatialExtents &, e, IN, double, xoffset, + Properties::NON_VIRTUAL, + __GeospatialExtents__intersection__C5_GeospatialExtents_R1__double, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::GeospatialExtents &, bb, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__expandBy__C5_osg_BoundingSphere_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__expandBy__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osgTerrain::GeospatialExtents &, e, + Properties::NON_VIRTUAL, + __void__expandBy__C5_GeospatialExtents_R1, + "", + ""); I_Constructor0(____GeospatialExtents, "", ""); @@ -1476,23 +4967,57 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::GeospatialExtents) I_PublicMemberProperty(bool, _isGeographic); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) - I_Constructor0(____ref_ptr, +BEGIN_VALUE_REFLECTOR(osgTerrain::GeospatialExtents) + I_Constructor0(____GeospatialExtents, "", ""); - I_Constructor1(IN, osg::Image *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + I_Constructor5(IN, double, xmin, IN, double, ymin, IN, double, xmax, IN, double, ymax, IN, bool, isGeographic, + ____GeospatialExtents__double__double__double__double__bool, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Image *, get, + I_Method0(double &, xMin, Properties::NON_VIRTUAL, - __T_P1__get, + __double_R1__xMin, + "", + ""); + I_Method0(double, xMin, + Properties::NON_VIRTUAL, + __double__xMin, + "", + ""); + I_Method0(double &, yMin, + Properties::NON_VIRTUAL, + __double_R1__yMin, + "", + ""); + I_Method0(double, yMin, + Properties::NON_VIRTUAL, + __double__yMin, + "", + ""); + I_Method0(double &, xMax, + Properties::NON_VIRTUAL, + __double_R1__xMax, + "", + ""); + I_Method0(double, xMax, + Properties::NON_VIRTUAL, + __double__xMax, + "", + ""); + I_Method0(double &, yMax, + Properties::NON_VIRTUAL, + __double_R1__yMax, + "", + ""); + I_Method0(double, yMax, + Properties::NON_VIRTUAL, + __double__yMax, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, "", ""); I_Method0(bool, valid, @@ -1500,38 +5025,91 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) __bool__valid, "", ""); - I_Method0(osg::Image *, release, + I_Method0(double, radius, Properties::NON_VIRTUAL, - __T_P1__release, + __double__radius, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp, + I_Method0(double, radius2, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __double__radius2, "", ""); - I_SimpleProperty(osg::Image *, , - __T_P1__get, - 0); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeDestination >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgTerrain::DataSet::CompositeDestination *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgTerrain::DataSet::CompositeDestination *, get, + I_Method2(osgTerrain::GeospatialExtents, intersection, IN, const osgTerrain::GeospatialExtents &, e, IN, double, xoffset, Properties::NON_VIRTUAL, - __T_P1__get, + __GeospatialExtents__intersection__C5_GeospatialExtents_R1__double, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::GeospatialExtents &, bb, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__expandBy__C5_osg_BoundingSphere_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__expandBy__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osgTerrain::GeospatialExtents &, e, + Properties::NON_VIRTUAL, + __void__expandBy__C5_GeospatialExtents_R1, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __double_R1__xMin, + "", + ""); + I_Method0(double, xMin, + Properties::NON_VIRTUAL, + __double__xMin, + "", + ""); + I_Method0(double &, yMin, + Properties::NON_VIRTUAL, + __double_R1__yMin, + "", + ""); + I_Method0(double, yMin, + Properties::NON_VIRTUAL, + __double__yMin, + "", + ""); + I_Method0(double &, xMax, + Properties::NON_VIRTUAL, + __double_R1__xMax, + "", + ""); + I_Method0(double, xMax, + Properties::NON_VIRTUAL, + __double__xMax, + "", + ""); + I_Method0(double &, yMax, + Properties::NON_VIRTUAL, + __double_R1__yMax, + "", + ""); + I_Method0(double, yMax, + Properties::NON_VIRTUAL, + __double__yMax, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, "", ""); I_Method0(bool, valid, @@ -1539,201 +5117,43 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeDestination >) __bool__valid, "", ""); - I_Method0(osgTerrain::DataSet::CompositeDestination *, release, + I_Method0(double, radius, Properties::NON_VIRTUAL, - __T_P1__release, + __double__radius, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp, + I_Method0(double, radius2, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __double__radius2, "", ""); - I_SimpleProperty(osgTerrain::DataSet::CompositeDestination *, , - __T_P1__get, - 0); + I_Method2(osgTerrain::GeospatialExtents, intersection, IN, const osgTerrain::GeospatialExtents &, e, IN, double, xoffset, + Properties::NON_VIRTUAL, + __GeospatialExtents__intersection__C5_GeospatialExtents_R1__double, + "", + ""); + I_Method1(bool, intersects, IN, const osgTerrain::GeospatialExtents &, bb, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__expandBy__C5_osg_BoundingSphere_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, + __void__expandBy__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, expandBy, IN, const osgTerrain::GeospatialExtents &, e, + Properties::NON_VIRTUAL, + __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< osgTerrain::DataSet::CompositeSource >) - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgTerrain::DataSet::CompositeSource *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgTerrain::DataSet::CompositeSource *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgTerrain::DataSet::CompositeSource *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp, - Properties::NON_VIRTUAL, - __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(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgTerrain::DataSet::DestinationTile *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgTerrain::DataSet::DestinationTile *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgTerrain::DataSet::DestinationTile *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp, - Properties::NON_VIRTUAL, - __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(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgTerrain::DataSet::Source *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::Source > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgTerrain::DataSet::Source *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgTerrain::DataSet::Source *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::Source > &, rp, - Properties::NON_VIRTUAL, - __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(), - ____base_source_iterator__CompositeSource_P1__T, - "", - ""); - I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer > &, rhs, - Properties::NON_EXPLICIT, - ____base_source_iterator__C5_base_source_iterator_R1, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(bool, advance, - Properties::NON_VIRTUAL, - __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(), - ____base_source_iterator__CompositeSource_P1__T, - "", - ""); - I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer > &, rhs, - Properties::NON_EXPLICIT, - ____base_source_iterator__C5_base_source_iterator_R1, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(bool, advance, - Properties::NON_VIRTUAL, - __bool__advance, - "", - ""); -END_REFLECTOR - -STD_MAP_REFLECTOR(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::DataSet::SpatialProperties >); - -STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgTerrain::DataSet::CompositeDestination * >); - -STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgTerrain::DataSet::Level >); - -STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgTerrain::DataSet::Row >); - -STD_VECTOR_REFLECTOR(std::vector< osg::Vec2 >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Image > >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeSource > >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::DestinationTile > >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::Source > >); - -STD_VECTOR_REFLECTOR(std::vector< osgTerrain::DataSet::Source::ResolutionPair >); - diff --git a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp index 737c018fd..a0d4fe390 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____HeightFieldNode, "", @@ -38,37 +39,486 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __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, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", + ""); + I_Method1(void, setHeightField, IN, osg::HeightField *, heightField, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_HeightField_P1__getHeightField, + "Get the HeightField. ", + ""); + I_Method0(const osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __C5_osg_HeightField_P1__getHeightField, + "Get the const HeightField. ", + ""); + I_Method0(void, heightFieldHasBeenModified, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setRenderer__osgTerrain_HeightFieldRenderer_P1, + "Set the Renderer. ", + ""); + I_Method0(osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, + __HeightFieldRenderer_P1__getRenderer, + "Get the Renderer. ", + ""); + I_Method0(const osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, + __C5_HeightFieldRenderer_P1__getRenderer, + "Get the const Renderer. ", + ""); + I_Method1(void, setBaseTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setBaseTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method0(const osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method1(void, setDetailTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setDetailTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method0(const osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setCloudShadowTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method0(const osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method1(void, setNormalMapImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setNormalMapImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(const osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(void, computeNormalMap, + Properties::NON_VIRTUAL, + __void__computeNormalMap, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setHeightField, IN, osg::HeightField *, heightField, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_HeightField_P1__getHeightField, + "Get the HeightField. ", + ""); + I_Method0(const osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __C5_osg_HeightField_P1__getHeightField, + "Get the const HeightField. ", + ""); + I_Method0(void, heightFieldHasBeenModified, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setRenderer__osgTerrain_HeightFieldRenderer_P1, + "Set the Renderer. ", + ""); + I_Method0(osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, + __HeightFieldRenderer_P1__getRenderer, + "Get the Renderer. ", + ""); + I_Method0(const osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, + __C5_HeightFieldRenderer_P1__getRenderer, + "Get the const Renderer. ", + ""); + I_Method1(void, setBaseTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setBaseTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method0(const osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method1(void, setDetailTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setDetailTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method0(const osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setCloudShadowTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method0(const osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method1(void, setNormalMapImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setNormalMapImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(const osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(void, computeNormalMap, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setHeightField, IN, osg::HeightField *, heightField, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_HeightField_P1__getHeightField, + "Get the HeightField. ", + ""); + I_Method0(const osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __C5_osg_HeightField_P1__getHeightField, + "Get the const HeightField. ", + ""); + I_Method0(void, heightFieldHasBeenModified, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setRenderer__osgTerrain_HeightFieldRenderer_P1, + "Set the Renderer. ", + ""); + I_Method0(osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, + __HeightFieldRenderer_P1__getRenderer, + "Get the Renderer. ", + ""); + I_Method0(const osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, + __C5_HeightFieldRenderer_P1__getRenderer, + "Get the const Renderer. ", + ""); + I_Method1(void, setBaseTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setBaseTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method0(const osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getBaseTextureImage, + "", + ""); + I_Method1(void, setDetailTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setDetailTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method0(const osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getDetailTextureImage, + "", + ""); + I_Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setCloudShadowTextureImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method0(const osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getCloudShadowTextureImage, + "", + ""); + I_Method1(void, setNormalMapImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setNormalMapImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(const osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getNormalMapImage, + "", + ""); + I_Method0(void, computeNormalMap, + Properties::NON_VIRTUAL, + __void__computeNormalMap, + "", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setHeightField, IN, osg::HeightField *, heightField, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp index 42a241b10..9ad3dce34 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp @@ -10,11 +10,11 @@ #include #include -#include +#include #include #include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -26,6 +26,126 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::HeightFieldRenderer) I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::NON_VIRTUAL, + __HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode, + Properties::NON_VIRTUAL, + __C5_HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(void, initialize, + Properties::PURE_VIRTUAL, + __void__initialize, + "", + ""); + I_Method0(void, heightFieldHasBeenModified, + Properties::PURE_VIRTUAL, + __void__heightFieldHasBeenModified, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::PURE_VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::PURE_VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode, + Properties::NON_VIRTUAL, + __C5_HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(void, initialize, + Properties::PURE_VIRTUAL, + __void__initialize, + "", + ""); + I_Method0(void, heightFieldHasBeenModified, + Properties::PURE_VIRTUAL, + __void__heightFieldHasBeenModified, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::PURE_VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::PURE_VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_SimpleProperty(osgTerrain::HeightFieldNode *, HeightFieldNode, + __HeightFieldNode_P1__getHeightFieldNode, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::HeightFieldRenderer) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + 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, + Properties::NON_VIRTUAL, + __HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode, + Properties::NON_VIRTUAL, + __C5_HeightFieldNode_P1__getHeightFieldNode, + "", + ""); + I_Method0(void, initialize, + Properties::PURE_VIRTUAL, + __void__initialize, + "", + ""); + I_Method0(void, heightFieldHasBeenModified, + Properties::PURE_VIRTUAL, + __void__heightFieldHasBeenModified, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::PURE_VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::PURE_VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); I_Constructor0(____HeightFieldRenderer, "", ""); diff --git a/src/osgWrappers/osgText/FadeText.cpp b/src/osgWrappers/osgText/FadeText.cpp index 7571b0565..138677dd2 100644 --- a/src/osgWrappers/osgText/FadeText.cpp +++ b/src/osgWrappers/osgText/FadeText.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgText::FadeText) + I_BaseType(osgText::Text); I_BaseType(osgText::Text); I_Constructor0(____FadeText, "", @@ -36,13 +37,13 @@ BEGIN_OBJECT_REFLECTOR(osgText::FadeText) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -51,13 +52,162 @@ BEGIN_OBJECT_REFLECTOR(osgText::FadeText) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(void, setFadeSpeed, IN, float, fadeSpeed, + Properties::NON_VIRTUAL, + __void__setFadeSpeed__float, + "Set the speed that the alpha value changes as the text is occluded or becomes visible. ", + ""); + I_Method0(float, getFadeSpeed, + Properties::NON_VIRTUAL, + __float__getFadeSpeed, + "Get the speed that the alpha value changes. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw the text. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFadeSpeed, IN, float, fadeSpeed, + Properties::NON_VIRTUAL, + __void__setFadeSpeed__float, + "Set the speed that the alpha value changes as the text is occluded or becomes visible. ", + ""); + I_Method0(float, getFadeSpeed, + Properties::NON_VIRTUAL, + __float__getFadeSpeed, + "Get the speed that the alpha value changes. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw the text. ", + ""); + I_SimpleProperty(float, FadeSpeed, + __float__getFadeSpeed, + __void__setFadeSpeed__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::FadeText) + I_BaseType(osgText::Text); + I_BaseType(osgText::Text); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setFadeSpeed, IN, float, fadeSpeed, + Properties::NON_VIRTUAL, + __void__setFadeSpeed__float, + "Set the speed that the alpha value changes as the text is occluded or becomes visible. ", + ""); + I_Method0(float, getFadeSpeed, + Properties::NON_VIRTUAL, + __float__getFadeSpeed, + "Get the speed that the alpha value changes. ", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw the text. ", + ""); + 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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setFadeSpeed, IN, float, fadeSpeed, Properties::NON_VIRTUAL, __void__setFadeSpeed__float, diff --git a/src/osgWrappers/osgText/Font.cpp b/src/osgWrappers/osgText/Font.cpp index ea844b250..b527feca4 100644 --- a/src/osgWrappers/osgText/Font.cpp +++ b/src/osgWrappers/osgText/Font.cpp @@ -10,14 +10,15 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -29,6 +30,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgText::Font) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, Properties::NON_EXPLICIT, @@ -38,13 +40,13 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -53,13 +55,564 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font) I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv, + Properties::NON_VIRTUAL, + __void__setTexEnv__osg_TexEnv_P1, + "", + ""); + I_Method0(osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, + __osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method0(const osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, + __C5_osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method0(unsigned int, getFontWidth, + Properties::NON_VIRTUAL, + __unsigned_int__getFontWidth, + "", + ""); + I_Method0(unsigned int, getFontHeight, + Properties::NON_VIRTUAL, + __unsigned_int__getFontHeight, + "", + ""); + I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureWidthHint, + "", + ""); + I_Method0(unsigned int, getTextureHeightHint, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureHeightHint, + "", + ""); + I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMinFilterHint, + "", + ""); + I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMagFilterHint, + "", + ""); + I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation, + Properties::NON_VIRTUAL, + __void__setImplementation__FontImplementation_P1, + "", + ""); + I_Method0(osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __FontImplementation_P1__getImplementation, + "", + ""); + I_Method0(const osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __C5_FontImplementation_P1__getImplementation, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, + Properties::NON_EXPLICIT, + ____Font__FontImplementation_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(std::string, getFileName, + Properties::VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv, + Properties::NON_VIRTUAL, + __void__setTexEnv__osg_TexEnv_P1, + "", + ""); + I_Method0(osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, + __osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method0(const osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, + __C5_osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method0(unsigned int, getFontWidth, + Properties::NON_VIRTUAL, + __unsigned_int__getFontWidth, + "", + ""); + I_Method0(unsigned int, getFontHeight, + Properties::NON_VIRTUAL, + __unsigned_int__getFontHeight, + "", + ""); + I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureWidthHint, + "", + ""); + I_Method0(unsigned int, getTextureHeightHint, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureHeightHint, + "", + ""); + I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMinFilterHint, + "", + ""); + I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMagFilterHint, + "", + ""); + I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation, + Properties::NON_VIRTUAL, + __void__setImplementation__FontImplementation_P1, + "", + ""); + I_Method0(osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __FontImplementation_P1__getImplementation, + "", + ""); + I_Method0(const osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __C5_FontImplementation_P1__getImplementation, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Font) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, + Properties::NON_EXPLICIT, + ____Font__FontImplementation_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(std::string, getFileName, + Properties::VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv, + Properties::NON_VIRTUAL, + __void__setTexEnv__osg_TexEnv_P1, + "", + ""); + I_Method0(osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, + __osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method0(const osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, + __C5_osg_TexEnv_P1__getTexEnv, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method0(unsigned int, getFontWidth, + Properties::NON_VIRTUAL, + __unsigned_int__getFontWidth, + "", + ""); + I_Method0(unsigned int, getFontHeight, + Properties::NON_VIRTUAL, + __unsigned_int__getFontHeight, + "", + ""); + I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureWidthHint, + "", + ""); + I_Method0(unsigned int, getTextureHeightHint, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureHeightHint, + "", + ""); + I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMinFilterHint, + "", + ""); + I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMagFilterHint, + "", + ""); + I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation, + Properties::NON_VIRTUAL, + __void__setImplementation__FontImplementation_P1, + "", + ""); + I_Method0(osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __FontImplementation_P1__getImplementation, + "", + ""); + I_Method0(const osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __C5_FontImplementation_P1__getImplementation, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __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_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, + Properties::NON_EXPLICIT, + ____Font__FontImplementation_P1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); I_Method0(std::string, getFileName, Properties::VIRTUAL, __std_string__getFileName, @@ -239,6 +792,7 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____FontImplementation, "", @@ -283,6 +837,46 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) __void__addGlyph__unsigned_int__unsigned_int__unsigned_int__Glyph_P1, "", ""); + I_Method0(std::string, getFileName, + Properties::PURE_VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::PURE_VIRTUAL, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setFontWidth, IN, unsigned int, width, + Properties::NON_VIRTUAL, + __void__setFontWidth__unsigned_int, + "", + ""); + I_Method1(void, setFontHeight, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addGlyph__unsigned_int__unsigned_int__unsigned_int__Glyph_P1, + "", + ""); I_SimpleProperty(std::string, FileName, __std_string__getFileName, 0); @@ -293,10 +887,470 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) 0, __void__setFontWidth__unsigned_int); I_PublicMemberProperty(osgText::Font *, _facade); + I_PublicMemberProperty(osgText::Font *, _facade); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____FontImplementation, + "", + ""); + I_Method0(std::string, getFileName, + Properties::PURE_VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::PURE_VIRTUAL, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setFontWidth, IN, unsigned int, width, + Properties::NON_VIRTUAL, + __void__setFontWidth__unsigned_int, + "", + ""); + I_Method1(void, setFontHeight, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__addGlyph__unsigned_int__unsigned_int__unsigned_int__Glyph_P1, + "", + ""); + I_Method0(std::string, getFileName, + Properties::PURE_VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::PURE_VIRTUAL, + __void__setFontResolution__unsigned_int__unsigned_int, + "Set the pixel width and height hint. ", + ""); + I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __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, + Properties::PURE_VIRTUAL, + __bool__hasVertical, + "Return true if this font provides vertical alignments and spacing or glyphs. ", + ""); + I_Method1(void, setFontWidth, IN, unsigned int, width, + Properties::NON_VIRTUAL, + __void__setFontWidth__unsigned_int, + "", + ""); + I_Method1(void, setFontHeight, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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); + I_PublicMemberProperty(osgText::Font *, _facade); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph) I_BaseType(osg::Image); + I_BaseType(osg::Image); + I_Constructor0(____Glyph, + "", + ""); + I_Method0(unsigned int, getGlyphCode, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphCode, + "", + ""); + I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, + __void__setHorizontalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getHorizontalBearing, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getHorizontalBearing, + "", + ""); + I_Method1(void, setHorizontalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, + __void__setHorizontalAdvance__float, + "", + ""); + I_Method0(float, getHorizontalAdvance, + Properties::NON_VIRTUAL, + __float__getHorizontalAdvance, + "", + ""); + I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, + __void__setVerticalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getVerticalBearing, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getVerticalBearing, + "", + ""); + I_Method1(void, setVerticalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, + __void__setVerticalAdvance__float, + "", + ""); + I_Method0(float, getVerticalAdvance, + Properties::NON_VIRTUAL, + __float__getVerticalAdvance, + "", + ""); + I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture, + Properties::NON_VIRTUAL, + __void__setTexture__GlyphTexture_P1, + "", + ""); + I_Method0(osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, + __GlyphTexture_P1__getTexture, + "", + ""); + I_Method0(const osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, + __C5_GlyphTexture_P1__getTexture, + "", + ""); + I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, + __void__setTexturePosition__int__int, + "", + ""); + I_Method0(int, getTexturePositionX, + Properties::NON_VIRTUAL, + __int__getTexturePositionX, + "", + ""); + I_Method0(int, getTexturePositionY, + Properties::NON_VIRTUAL, + __int__getTexturePositionY, + "", + ""); + I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, + __void__setMinTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinTexCoord, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMinTexCoord, + "", + ""); + I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, + __void__setMaxTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMaxTexCoord, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMaxTexCoord, + "", + ""); + I_Method0(void, subload, + Properties::NON_VIRTUAL, + __void__subload, + "", + ""); + I_Method1(void, draw, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__draw__osg_State_R1, + "", + ""); + I_Constructor0(____Glyph, + "", + ""); + I_Method0(unsigned int, getGlyphCode, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphCode, + "", + ""); + I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, + __void__setHorizontalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getHorizontalBearing, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getHorizontalBearing, + "", + ""); + I_Method1(void, setHorizontalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, + __void__setHorizontalAdvance__float, + "", + ""); + I_Method0(float, getHorizontalAdvance, + Properties::NON_VIRTUAL, + __float__getHorizontalAdvance, + "", + ""); + I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, + __void__setVerticalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getVerticalBearing, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getVerticalBearing, + "", + ""); + I_Method1(void, setVerticalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, + __void__setVerticalAdvance__float, + "", + ""); + I_Method0(float, getVerticalAdvance, + Properties::NON_VIRTUAL, + __float__getVerticalAdvance, + "", + ""); + I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture, + Properties::NON_VIRTUAL, + __void__setTexture__GlyphTexture_P1, + "", + ""); + I_Method0(osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, + __GlyphTexture_P1__getTexture, + "", + ""); + I_Method0(const osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, + __C5_GlyphTexture_P1__getTexture, + "", + ""); + I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, + __void__setTexturePosition__int__int, + "", + ""); + I_Method0(int, getTexturePositionX, + Properties::NON_VIRTUAL, + __int__getTexturePositionX, + "", + ""); + I_Method0(int, getTexturePositionY, + Properties::NON_VIRTUAL, + __int__getTexturePositionY, + "", + ""); + I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, + __void__setMinTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinTexCoord, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMinTexCoord, + "", + ""); + I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, + __void__setMaxTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMaxTexCoord, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMaxTexCoord, + "", + ""); + I_Method0(void, subload, + Properties::NON_VIRTUAL, + __void__subload, + "", + ""); + I_Method1(void, draw, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __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_OBJECT_REFLECTOR(osgText::Font::Glyph) + I_BaseType(osg::Image); + I_BaseType(osg::Image); + I_Constructor0(____Glyph, + "", + ""); + I_Method0(unsigned int, getGlyphCode, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphCode, + "", + ""); + I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, + __void__setHorizontalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getHorizontalBearing, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getHorizontalBearing, + "", + ""); + I_Method1(void, setHorizontalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, + __void__setHorizontalAdvance__float, + "", + ""); + I_Method0(float, getHorizontalAdvance, + Properties::NON_VIRTUAL, + __float__getHorizontalAdvance, + "", + ""); + I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, + __void__setVerticalBearing__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getVerticalBearing, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getVerticalBearing, + "", + ""); + I_Method1(void, setVerticalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, + __void__setVerticalAdvance__float, + "", + ""); + I_Method0(float, getVerticalAdvance, + Properties::NON_VIRTUAL, + __float__getVerticalAdvance, + "", + ""); + I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture, + Properties::NON_VIRTUAL, + __void__setTexture__GlyphTexture_P1, + "", + ""); + I_Method0(osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, + __GlyphTexture_P1__getTexture, + "", + ""); + I_Method0(const osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, + __C5_GlyphTexture_P1__getTexture, + "", + ""); + I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, + __void__setTexturePosition__int__int, + "", + ""); + I_Method0(int, getTexturePositionX, + Properties::NON_VIRTUAL, + __int__getTexturePositionX, + "", + ""); + I_Method0(int, getTexturePositionY, + Properties::NON_VIRTUAL, + __int__getTexturePositionY, + "", + ""); + I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, + __void__setMinTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMinTexCoord, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMinTexCoord, + "", + ""); + I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, + __void__setMaxTexCoord__C5_osg_Vec2_R1, + "", + ""); + I_Method0(const osg::Vec2 &, getMaxTexCoord, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getMaxTexCoord, + "", + ""); + I_Method0(void, subload, + Properties::NON_VIRTUAL, + __void__subload, + "", + ""); + I_Method1(void, draw, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__draw__osg_State_R1, + "", + ""); I_Constructor0(____Glyph, "", ""); @@ -438,14 +1492,15 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) + I_BaseType(osg::Texture2D); I_BaseType(osg::Texture2D); I_Constructor0(____GlyphTexture, "", ""); I_Method0(const char *, className, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, Properties::VIRTUAL, @@ -475,8 +1530,163 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __void__apply__osg_State_R1, - "Bind the texture object. ", - "If the texture object hasn't already been compiled, create the texture mipmap levels. "); + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_Constructor0(____GlyphTexture, + "", + ""); + I_Method0(const char *, className, + Properties::NON_VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY, + Properties::NON_VIRTUAL, + __bool__getSpaceForGlyph__Glyph_P1__int_R1__int_R1, + "", + ""); + I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, + __void__addGlyph__Glyph_P1__int__int, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__osg_State_R1, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_SimpleProperty(unsigned int, GlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + __void__setGlyphImageMargin__unsigned_int); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) + I_BaseType(osg::Texture2D); + I_BaseType(osg::Texture2D); + I_Constructor0(____GlyphTexture, + "", + ""); + I_Method0(const char *, className, + Properties::NON_VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY, + Properties::NON_VIRTUAL, + __bool__getSpaceForGlyph__Glyph_P1__int_R1__int_R1, + "", + ""); + I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, + __void__addGlyph__Glyph_P1__int__int, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__osg_State_R1, + "", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_Constructor0(____GlyphTexture, + "", + ""); + I_Method0(const char *, className, + Properties::NON_VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY, + Properties::NON_VIRTUAL, + __bool__getSpaceForGlyph__Glyph_P1__int_R1__int_R1, + "", + ""); + I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, + __void__addGlyph__Glyph_P1__int__int, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__osg_State_R1, + "", + ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, diff --git a/src/osgWrappers/osgText/GNUmakefile b/src/osgWrappers/osgText/GNUmakefile index 810863966..7236b57dd 100644 --- a/src/osgWrappers/osgText/GNUmakefile +++ b/src/osgWrappers/osgText/GNUmakefile @@ -2,11 +2,9 @@ TOPDIR = ../../.. include $(TOPDIR)/Make/makedefs CXXFILES =\ - Export.cpp\ FadeText.cpp\ Font.cpp\ String.cpp\ - Text.cpp\ LIBS += -losgText -losg -losgIntrospection -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgText/String.cpp b/src/osgWrappers/osgText/String.cpp index d611c2b3f..229de06fe 100644 --- a/src/osgWrappers/osgText/String.cpp +++ b/src/osgWrappers/osgText/String.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -37,6 +38,153 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgText::String) I_BaseType(osgText::VectorUInt); + I_BaseType(osgText::VectorUInt); + I_Constructor0(____String, + "", + ""); + I_Constructor1(IN, const osgText::String &, str, + Properties::NON_EXPLICIT, + ____String__C5_String_R1, + "", + ""); + I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, + ____String__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, const wchar_t *, text, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_std_string_R1, + "", + ""); + I_Method1(void, set, IN, const wchar_t *, text, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __std_string__createUTF8EncodedString, + "returns a UTF8 encoded version of this osgText::String. ", + ""); + I_Constructor0(____String, + "", + ""); + I_Constructor1(IN, const osgText::String &, str, + Properties::NON_EXPLICIT, + ____String__C5_String_R1, + "", + ""); + I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, + ____String__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, const wchar_t *, text, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_std_string_R1, + "", + ""); + I_Method1(void, set, IN, const wchar_t *, text, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __std_string__createUTF8EncodedString, + "returns a UTF8 encoded version of this osgText::String. ", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgText::VectorUInt, osgText::String::vector_type); + +BEGIN_ENUM_REFLECTOR(osgText::String::Encoding) + I_EnumLabel(osgText::String::ENCODING_UNDEFINED); + I_EnumLabel(osgText::String::ENCODING_ASCII); + I_EnumLabel(osgText::String::ENCODING_UTF8); + I_EnumLabel(osgText::String::ENCODING_UTF16); + I_EnumLabel(osgText::String::ENCODING_UTF16_BE); + I_EnumLabel(osgText::String::ENCODING_UTF16_LE); + I_EnumLabel(osgText::String::ENCODING_UTF32); + I_EnumLabel(osgText::String::ENCODING_UTF32_BE); + I_EnumLabel(osgText::String::ENCODING_UTF32_LE); + I_EnumLabel(osgText::String::ENCODING_SIGNATURE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::String) + I_BaseType(osgText::VectorUInt); + I_BaseType(osgText::VectorUInt); + I_Constructor0(____String, + "", + ""); + I_Constructor1(IN, const osgText::String &, str, + Properties::NON_EXPLICIT, + ____String__C5_String_R1, + "", + ""); + I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, + ____String__C5_std_string_R1, + "", + ""); + I_Constructor1(IN, const wchar_t *, text, + Properties::NON_EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __void__set__C5_std_string_R1, + "", + ""); + I_Method1(void, set, IN, const wchar_t *, text, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __std_string__createUTF8EncodedString, + "returns a UTF8 encoded version of this osgText::String. ", + ""); I_Constructor0(____String, "", ""); @@ -100,5 +248,60 @@ BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) ____VectorUInt__unsigned_int, "", ""); + I_Constructor0(____VectorUInt, + "", + ""); + I_Constructor1(IN, const osgText::VectorUInt &, copy, + Properties::NON_EXPLICIT, + ____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, + Properties::EXPLICIT, + ____VectorUInt__unsigned_int, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) + I_BaseType(std::vector); + I_Constructor0(____VectorUInt, + "", + ""); + I_Constructor1(IN, const osgText::VectorUInt &, copy, + Properties::NON_EXPLICIT, + ____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, + Properties::EXPLICIT, + ____VectorUInt__unsigned_int, + "", + ""); + I_Constructor0(____VectorUInt, + "", + ""); + I_Constructor1(IN, const osgText::VectorUInt &, copy, + Properties::NON_EXPLICIT, + ____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, + Properties::EXPLICIT, + ____VectorUInt__unsigned_int, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp index b275d7a05..3a753027d 100644 --- a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp @@ -10,9 +10,8 @@ #include #include -#include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +24,84 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true, + Properties::NON_VIRTUAL, + __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."); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true, + Properties::NON_VIRTUAL, + __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 + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::EXPLICIT, + ____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, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage__osg_TextureCubeMap_Face, + "", + ""); + I_MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true, + Properties::NON_VIRTUAL, + __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."); I_ConstructorWithDefaults1(IN, int, texture_size, 64, Properties::EXPLICIT, ____CubeMapGenerator__int, diff --git a/src/osgWrappers/osgUtil/CullVisitor.cpp b/src/osgWrappers/osgUtil/CullVisitor.cpp index 963799d84..d68d675f2 100644 --- a/src/osgWrappers/osgUtil/CullVisitor.cpp +++ b/src/osgWrappers/osgUtil/CullVisitor.cpp @@ -10,35 +10,36 @@ #include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include #include -#include -#include #include -#include #include -#include +#include +#include +#include #include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -51,6 +52,8 @@ 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_BaseType(osg::NodeVisitor); I_BaseType(osg::CullStack); I_Constructor0(____CullVisitor, @@ -69,28 +72,877 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::CullVisitor) I_Method0(osg::Vec3, getEyePoint, Properties::VIRTUAL, __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_Method0(osg::Vec3, getViewPoint, Properties::VIRTUAL, __osg_Vec3__getViewPoint, - "Get the view 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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, Properties::VIRTUAL, __float__getDistanceToViewPoint__C5_osg_Vec3_R1__bool, - "Get the distance from a point to the view point, distance value in local coordinate system. ", - "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceToViewPoint(pos) is not implemented then a default value of 0.0 is returned. "); + "", + ""); + I_Method1(void, apply, IN, osg::Node &, x, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClipNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ClipNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::TexGenNode &, node, + Properties::VIRTUAL, + __void__apply__osg_TexGenNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClearNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ClearNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, node, + Properties::VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky, + Properties::NON_VIRTUAL, + __void__setClearNode__C5_osg_ClearNode_P1, + "", + ""); + I_Method0(const osg::ClearNode *, getClearNode, + Properties::NON_VIRTUAL, + __C5_osg_ClearNode_P1__getClearNode, + "", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setStateGraph__StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getRootStateGraph, + Properties::NON_VIRTUAL, + __StateGraph_P1__getRootStateGraph, + "", + ""); + I_Method0(osgUtil::StateGraph *, getCurrentStateGraph, + Properties::NON_VIRTUAL, + __StateGraph_P1__getCurrentStateGraph, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg, + Properties::NON_VIRTUAL, + __void__setRenderStage__RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(osgUtil::RenderBin *, getCurrentRenderBin, + Properties::NON_VIRTUAL, + __RenderBin_P1__getCurrentRenderBin, + "", + ""); + I_Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb, + Properties::NON_VIRTUAL, + __void__setCurrentRenderBin__RenderBin_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane, + Properties::NON_VIRTUAL, + __value_type__getCalculatedNearPlane, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_Drawable_R1__bool, + "", + ""); + I_Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__updateCalculatedNearFar__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Constructor0(____CullVisitor, + "", + ""); + I_Method0(osgUtil::CullVisitor *, cloneType, + Properties::VIRTUAL, + __CullVisitor_P1__cloneType, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "", + ""); + I_Method0(osg::Vec3, getViewPoint, + Properties::VIRTUAL, + __osg_Vec3__getViewPoint, + "", + ""); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceFromEyePoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceToViewPoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, x, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClipNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ClipNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::TexGenNode &, node, + Properties::VIRTUAL, + __void__apply__osg_TexGenNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClearNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ClearNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, node, + Properties::VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky, + Properties::NON_VIRTUAL, + __void__setClearNode__C5_osg_ClearNode_P1, + "", + ""); + I_Method0(const osg::ClearNode *, getClearNode, + Properties::NON_VIRTUAL, + __C5_osg_ClearNode_P1__getClearNode, + "", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setStateGraph__StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getRootStateGraph, + Properties::NON_VIRTUAL, + __StateGraph_P1__getRootStateGraph, + "", + ""); + I_Method0(osgUtil::StateGraph *, getCurrentStateGraph, + Properties::NON_VIRTUAL, + __StateGraph_P1__getCurrentStateGraph, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg, + Properties::NON_VIRTUAL, + __void__setRenderStage__RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(osgUtil::RenderBin *, getCurrentRenderBin, + Properties::NON_VIRTUAL, + __RenderBin_P1__getCurrentRenderBin, + "", + ""); + I_Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb, + Properties::NON_VIRTUAL, + __void__setCurrentRenderBin__RenderBin_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane, + Properties::NON_VIRTUAL, + __value_type__getCalculatedNearPlane, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_Drawable_R1__bool, + "", + ""); + I_Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__updateCalculatedNearFar__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __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); + I_SimpleProperty(osg::Vec3, ViewPoint, + __osg_Vec3__getViewPoint, + 0); +END_REFLECTOR + +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_BaseType(osg::NodeVisitor); + I_BaseType(osg::CullStack); + I_Constructor0(____CullVisitor, + "", + ""); + I_Method0(osgUtil::CullVisitor *, cloneType, + Properties::VIRTUAL, + __CullVisitor_P1__cloneType, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "", + ""); + I_Method0(osg::Vec3, getViewPoint, + Properties::VIRTUAL, + __osg_Vec3__getViewPoint, + "", + ""); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceFromEyePoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceToViewPoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, x, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClipNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ClipNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::TexGenNode &, node, + Properties::VIRTUAL, + __void__apply__osg_TexGenNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ClearNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ClearNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, node, + Properties::VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky, + Properties::NON_VIRTUAL, + __void__setClearNode__C5_osg_ClearNode_P1, + "", + ""); + I_Method0(const osg::ClearNode *, getClearNode, + Properties::NON_VIRTUAL, + __C5_osg_ClearNode_P1__getClearNode, + "", + ""); + I_Method1(void, pushStateSet, IN, const osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setStateGraph__StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getRootStateGraph, + Properties::NON_VIRTUAL, + __StateGraph_P1__getRootStateGraph, + "", + ""); + I_Method0(osgUtil::StateGraph *, getCurrentStateGraph, + Properties::NON_VIRTUAL, + __StateGraph_P1__getCurrentStateGraph, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg, + Properties::NON_VIRTUAL, + __void__setRenderStage__RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(osgUtil::RenderBin *, getCurrentRenderBin, + Properties::NON_VIRTUAL, + __RenderBin_P1__getCurrentRenderBin, + "", + ""); + I_Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb, + Properties::NON_VIRTUAL, + __void__setCurrentRenderBin__RenderBin_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane, + Properties::NON_VIRTUAL, + __value_type__getCalculatedNearPlane, + "", + ""); + I_Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_Drawable_R1__bool, + "", + ""); + I_Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__updateCalculatedNearFar__C5_osg_Vec3_R1, + "", + ""); + I_Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Constructor0(____CullVisitor, + "", + ""); + I_Method0(osgUtil::CullVisitor *, cloneType, + Properties::VIRTUAL, + __CullVisitor_P1__cloneType, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "", + ""); + I_Method0(osg::Vec3, getViewPoint, + Properties::VIRTUAL, + __osg_Vec3__getViewPoint, + "", + ""); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceFromEyePoint__C5_osg_Vec3_R1__bool, + "", + ""); + I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __float__getDistanceToViewPoint__C5_osg_Vec3_R1__bool, + "", + ""); I_Method1(void, apply, IN, osg::Node &, x, Properties::VIRTUAL, __void__apply__osg_Node_R1, diff --git a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp index 7cd134516..1bdbc5657 100644 --- a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp +++ b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,189 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayConstraint) I_BaseType(osg::Geometry); + I_BaseType(osg::Geometry); + I_Constructor0(____DelaunayConstraint, + "", + ""); + I_Method3(void, addtriangle, IN, const int, i1, IN, const int, i2, IN, const int, i3, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__getTriangles, + "", + ""); + I_Method1(osg::Vec3Array *, getPoints, IN, const osg::Vec3Array *, points, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getPoints__C5_osg_Vec3Array_P1, + "Call BEFORE makeDrawable to reorder points to make optimised set. ", + ""); + I_Method0(osg::DrawElementsUInt *, makeDrawable, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__makeDrawable, + "converts simple list of triangles into a drawarray. ", + ""); + I_Method1(void, merge, IN, osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, + __void__merge__DelaunayConstraint_P1, + "Add vertices and constraint loops from dco Can be used to generate extra vertices where dco crosses 'this' using osgUtil::Tessellator to insert overlap vertices. ", + ""); + I_Method1(void, removeVerticesInside, IN, const osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, + __void__removeVerticesInside__C5_DelaunayConstraint_P1, + "remove from line the vertices that are inside dco ", + ""); + I_Method1(float, windingNumber, IN, const osg::Vec3, testpoint, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__contains__C5_osg_Vec3, + "true if testpoint is internal (or external) to constraint. ", + ""); + I_Method1(bool, outside, IN, const osg::Vec3, testpoint, + Properties::VIRTUAL, + __bool__outside__C5_osg_Vec3, + "", + ""); + I_Method0(void, handleOverlaps, + Properties::NON_VIRTUAL, + __void__handleOverlaps, + "Tessellate the constraint loops so that the crossing points are interpolated and added to the contraints for the triangulation. ", + ""); + I_Constructor0(____DelaunayConstraint, + "", + ""); + I_Method3(void, addtriangle, IN, const int, i1, IN, const int, i2, IN, const int, i3, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__getTriangles, + "", + ""); + I_Method1(osg::Vec3Array *, getPoints, IN, const osg::Vec3Array *, points, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getPoints__C5_osg_Vec3Array_P1, + "Call BEFORE makeDrawable to reorder points to make optimised set. ", + ""); + I_Method0(osg::DrawElementsUInt *, makeDrawable, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__makeDrawable, + "converts simple list of triangles into a drawarray. ", + ""); + I_Method1(void, merge, IN, osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, + __void__merge__DelaunayConstraint_P1, + "Add vertices and constraint loops from dco Can be used to generate extra vertices where dco crosses 'this' using osgUtil::Tessellator to insert overlap vertices. ", + ""); + I_Method1(void, removeVerticesInside, IN, const osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, + __void__removeVerticesInside__C5_DelaunayConstraint_P1, + "remove from line the vertices that are inside dco ", + ""); + I_Method1(float, windingNumber, IN, const osg::Vec3, testpoint, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__contains__C5_osg_Vec3, + "true if testpoint is internal (or external) to constraint. ", + ""); + I_Method1(bool, outside, IN, const osg::Vec3, testpoint, + Properties::VIRTUAL, + __bool__outside__C5_osg_Vec3, + "", + ""); + I_Method0(void, handleOverlaps, + Properties::NON_VIRTUAL, + __void__handleOverlaps, + "Tessellate 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 + +BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayConstraint) + I_BaseType(osg::Geometry); + I_BaseType(osg::Geometry); + I_Constructor0(____DelaunayConstraint, + "", + ""); + I_Method3(void, addtriangle, IN, const int, i1, IN, const int, i2, IN, const int, i3, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__getTriangles, + "", + ""); + I_Method1(osg::Vec3Array *, getPoints, IN, const osg::Vec3Array *, points, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getPoints__C5_osg_Vec3Array_P1, + "Call BEFORE makeDrawable to reorder points to make optimised set. ", + ""); + I_Method0(osg::DrawElementsUInt *, makeDrawable, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__makeDrawable, + "converts simple list of triangles into a drawarray. ", + ""); + I_Method1(void, merge, IN, osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, + __void__merge__DelaunayConstraint_P1, + "Add vertices and constraint loops from dco Can be used to generate extra vertices where dco crosses 'this' using osgUtil::Tessellator to insert overlap vertices. ", + ""); + I_Method1(void, removeVerticesInside, IN, const osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, + __void__removeVerticesInside__C5_DelaunayConstraint_P1, + "remove from line the vertices that are inside dco ", + ""); + I_Method1(float, windingNumber, IN, const osg::Vec3, testpoint, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__contains__C5_osg_Vec3, + "true if testpoint is internal (or external) to constraint. ", + ""); + I_Method1(bool, outside, IN, const osg::Vec3, testpoint, + Properties::VIRTUAL, + __bool__outside__C5_osg_Vec3, + "", + ""); + I_Method0(void, handleOverlaps, + Properties::NON_VIRTUAL, + __void__handleOverlaps, + "Tessellate the constraint loops so that the crossing points are interpolated and added to the contraints for the triangulation. ", + ""); I_Constructor0(____DelaunayConstraint, "", ""); @@ -93,6 +276,73 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >, osgU BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + 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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getInputPointArray, + "Get the const input point array. ", + ""); + I_Method0(osg::Vec3Array *, getInputPointArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getInputPointArray, + "Get the input point array. ", + ""); + I_Method1(void, setInputPointArray, IN, osg::Vec3Array *, points, + Properties::NON_VIRTUAL, + __void__setInputPointArray__osg_Vec3Array_P1, + "Set the input point array. ", + ""); + I_Method1(void, addInputConstraint, IN, osgUtil::DelaunayConstraint *, dc, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getOutputNormalArray, + "Get the const output normal array (optional). ", + ""); + I_Method0(osg::Vec3Array *, getOutputNormalArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getOutputNormalArray, + "Get the output normal array (optional). ", + ""); + I_Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals, + Properties::NON_VIRTUAL, + __void__setOutputNormalArray__osg_Vec3Array_P1, + "Set the output normal array (optional). ", + ""); + I_Method0(bool, triangulate, + Properties::NON_VIRTUAL, + __bool__triangulate, + "Start triangulation. ", + ""); + I_Method0(const osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, + __C5_osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method0(osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method1(void, removeInternalTriangles, IN, osgUtil::DelaunayConstraint *, constraint, + Properties::NON_VIRTUAL, + __void__removeInternalTriangles__DelaunayConstraint_P1, + "remove the triangles internal to the constraint loops. ", + "(Line strips cannot remove any internal triangles). "); I_Constructor0(____DelaunayTriangulator, "", ""); @@ -170,44 +420,151 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) 0); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::DelaunayConstraint >) - I_Constructor0(____ref_ptr, +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >, osgUtil::DelaunayTriangulator::linelist); + +BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____DelaunayTriangulator, "", ""); - I_Constructor1(IN, osgUtil::DelaunayConstraint *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + 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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getInputPointArray, + "Get the const input point array. ", + ""); + I_Method0(osg::Vec3Array *, getInputPointArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getInputPointArray, + "Get the input point array. ", + ""); + I_Method1(void, setInputPointArray, IN, osg::Vec3Array *, points, + Properties::NON_VIRTUAL, + __void__setInputPointArray__osg_Vec3Array_P1, + "Set the input point array. ", + ""); + I_Method1(void, addInputConstraint, IN, osgUtil::DelaunayConstraint *, dc, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getOutputNormalArray, + "Get the const output normal array (optional). ", + ""); + I_Method0(osg::Vec3Array *, getOutputNormalArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getOutputNormalArray, + "Get the output normal array (optional). ", + ""); + I_Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals, + Properties::NON_VIRTUAL, + __void__setOutputNormalArray__osg_Vec3Array_P1, + "Set the output normal array (optional). ", + ""); + I_Method0(bool, triangulate, + Properties::NON_VIRTUAL, + __bool__triangulate, + "Start triangulation. ", + ""); + I_Method0(const osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, + __C5_osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method0(osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method1(void, removeInternalTriangles, IN, osgUtil::DelaunayConstraint *, constraint, + Properties::NON_VIRTUAL, + __void__removeInternalTriangles__DelaunayConstraint_P1, + "remove the triangles internal to the constraint loops. ", + "(Line strips cannot remove any internal triangles). "); + I_Constructor0(____DelaunayTriangulator, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgUtil::DelaunayConstraint *, get, + 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, Properties::NON_VIRTUAL, - __T_P1__get, - "", + __C5_osg_Vec3Array_P1__getInputPointArray, + "Get the const input point array. ", ""); - I_Method0(bool, valid, + I_Method0(osg::Vec3Array *, getInputPointArray, Properties::NON_VIRTUAL, - __bool__valid, - "", + __osg_Vec3Array_P1__getInputPointArray, + "Get the input point array. ", ""); - I_Method0(osgUtil::DelaunayConstraint *, release, + I_Method1(void, setInputPointArray, IN, osg::Vec3Array *, points, Properties::NON_VIRTUAL, - __T_P1__release, - "", + __void__setInputPointArray__osg_Vec3Array_P1, + "Set the input point array. ", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp, + I_Method1(void, addInputConstraint, IN, osgUtil::DelaunayConstraint *, dc, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, - "", + __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, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getOutputNormalArray, + "Get the const output normal array (optional). ", ""); - I_SimpleProperty(osgUtil::DelaunayConstraint *, , - __T_P1__get, + I_Method0(osg::Vec3Array *, getOutputNormalArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getOutputNormalArray, + "Get the output normal array (optional). ", + ""); + I_Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals, + Properties::NON_VIRTUAL, + __void__setOutputNormalArray__osg_Vec3Array_P1, + "Set the output normal array (optional). ", + ""); + I_Method0(bool, triangulate, + Properties::NON_VIRTUAL, + __bool__triangulate, + "Start triangulation. ", + ""); + I_Method0(const osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, + __C5_osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method0(osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, + __osg_DrawElementsUInt_P1__getTriangles, + "Get the generated primitive (call triangulate() first). ", + ""); + I_Method1(void, removeInternalTriangles, IN, osgUtil::DelaunayConstraint *, constraint, + Properties::NON_VIRTUAL, + __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 -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 f3e77be0b..804830813 100644 --- a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp +++ b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp @@ -10,10 +10,10 @@ #include #include -#include +#include +#include +#include #include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,99 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::DisplayRequirementsVisitor) I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + 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, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, applyStateSet, IN, osg::StateSet &, stateset, + Properties::VIRTUAL, + __void__applyStateSet__osg_StateSet_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, applyStateSet, IN, osg::StateSet &, stateset, + Properties::VIRTUAL, + __void__applyStateSet__osg_StateSet_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + 0, + __void__setDisplaySettings__osg_DisplaySettings_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::DisplayRequirementsVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + 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, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, applyStateSet, IN, osg::StateSet &, stateset, + Properties::VIRTUAL, + __void__applyStateSet__osg_StateSet_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); I_Constructor0(____DisplayRequirementsVisitor, "Default to traversing all children, and requiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off. ", ""); diff --git a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp index ea49e5e80..0cb991115 100644 --- a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp +++ b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp @@ -10,12 +10,13 @@ #include #include -#include +#include +#include +#include +#include #include -#include -#include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -41,6 +42,7 @@ BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) + I_BaseType(osg::NodeVisitor); 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, Properties::NON_EXPLICIT, @@ -50,8 +52,216 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) I_Method0(void, reset, Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "Set the operational mode of what operations to do on the scene graph. ", + ""); + I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "Get the operational mode. ", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "Set the State to use during traversal. ", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "Simply traverse using standard NodeVisitor traverse method. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method1(void, apply, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + __void__apply__osg_StateSet_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "Set the operational mode of what operations to do on the scene graph. ", + ""); + I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "Get the operational mode. ", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "Set the State to use during traversal. ", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "Simply traverse using standard NodeVisitor traverse method. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method1(void, apply, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + __void__apply__osg_StateSet_R1, + "", + ""); + I_SimpleProperty(osgUtil::GLObjectsVisitor::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::RenderInfo &, RenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + __void__setRenderInfo__osg_RenderInfo_R1); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(unsigned int, osgUtil::GLObjectsVisitor::Mode); + +BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES); + I_EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_STATE_ATTRIBUTES); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_VERTEX_BUFFER_OBJECTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) + I_BaseType(osg::NodeVisitor); + 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, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "Set the operational mode of what operations to do on the scene graph. ", + ""); + I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "Get the operational mode. ", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "Set the State to use during traversal. ", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "Simply traverse using standard NodeVisitor traverse method. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method1(void, apply, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + __void__apply__osg_StateSet_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __void__reset, + "", + ""); I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode, Properties::NON_VIRTUAL, __void__setMode__Mode, diff --git a/src/osgWrappers/osgUtil/GNUmakefile b/src/osgWrappers/osgUtil/GNUmakefile index b40b27b7a..ef76cc1a9 100644 --- a/src/osgWrappers/osgUtil/GNUmakefile +++ b/src/osgWrappers/osgUtil/GNUmakefile @@ -13,24 +13,11 @@ CXXFILES =\ IntersectionVisitor.cpp\ LineSegmentIntersector.cpp\ Optimizer.cpp\ - PlaneIntersector.cpp\ - PolytopeIntersector.cpp\ - PositionalStateContainer.cpp\ - ReflectionMapGenerator.cpp\ RenderBin.cpp\ RenderLeaf.cpp\ - RenderStage.cpp\ SceneView.cpp\ Simplifier.cpp\ - SmoothingVisitor.cpp\ - StateGraph.cpp\ - Statistics.cpp\ - TangentSpaceGenerator.cpp\ - Tessellator.cpp\ - TransformAttributeFunctor.cpp\ - TransformCallback.cpp\ TriStripVisitor.cpp\ - UpdateVisitor.cpp\ LIBS += -losgUtil -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp index 5fdfa26f3..65e1f0527 100644 --- a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +24,36 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); + I_BaseType(osgUtil::CubeMapGenerator); + 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, + "", + ""); + 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 + +BEGIN_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) + I_BaseType(osgUtil::CubeMapGenerator); + I_BaseType(osgUtil::CubeMapGenerator); + 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, + "", + ""); I_ConstructorWithDefaults2(IN, const osg::Vec3 &, light_direction, , IN, int, texture_size, 64, ____HalfWayMapGenerator__C5_osg_Vec3_R1__int, "", diff --git a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp index 92099173b..19184a3ef 100644 --- a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,36 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); + 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, + ____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, + "", + ""); + 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 + +BEGIN_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) + I_BaseType(osgUtil::CubeMapGenerator); + 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, + ____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, + "", + ""); 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, "", diff --git a/src/osgWrappers/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/osgUtil/IntersectVisitor.cpp index 647cf8017..f6c2f5c25 100644 --- a/src/osgWrappers/osgUtil/IntersectVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectVisitor.cpp @@ -10,21 +10,22 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include -#include -#include -#include -#include #include #include #include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -38,6 +39,99 @@ TYPE_NAME_ALIAS(std::vector< int >, osgUtil::Hit::VecIndexList); BEGIN_VALUE_REFLECTOR(osgUtil::Hit) + 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 tessellated sphere rendered."); + I_Constructor1(IN, const osgUtil::Hit &, hit, + Properties::NON_EXPLICIT, + ____Hit__C5_Hit_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getWorldIntersectNormal, + "", + ""); + I_Method0(float, getRatio, + Properties::NON_VIRTUAL, + __float__getRatio, + "", + ""); + I_Method0(const osg::LineSegment *, getOriginalLineSegment, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_P1__getOriginalLineSegment, + "", + ""); + I_Method0(const osg::LineSegment *, getLocalLineSegment, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_P1__getLocalLineSegment, + "", + ""); + I_Method0(osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __C5_osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __osg_Geode_P1__getGeode, + "", + ""); + I_Method0(const osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __C5_osg_Geode_P1__getGeode, + "", + ""); + I_Method0(osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::RefMatrix *, getMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getMatrix, + "", + ""); + I_Method0(const osg::RefMatrix *, getInverseMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getInverseMatrix, + "", + ""); + I_Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList, + Properties::NON_VIRTUAL, + __C5_VecIndexList_R1__getVecIndexList, + "", + ""); + I_Method0(int, getPrimitiveIndex, + Properties::NON_VIRTUAL, + __int__getPrimitiveIndex, + "", + ""); 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 tessellated sphere rendered."); @@ -185,6 +279,263 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Hit) I_PublicMemberProperty(int, _primitiveIndex); I_PublicMemberProperty(osg::Vec3, _intersectPoint); I_PublicMemberProperty(osg::Vec3, _intersectNormal); + I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _originalLineSegment); + I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _localLineSegment); + I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, _geode); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _matrix); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _inverse); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< int >, osgUtil::Hit::VecIndexList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Hit) + 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 tessellated sphere rendered."); + I_Constructor1(IN, const osgUtil::Hit &, hit, + Properties::NON_EXPLICIT, + ____Hit__C5_Hit_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getWorldIntersectNormal, + "", + ""); + I_Method0(float, getRatio, + Properties::NON_VIRTUAL, + __float__getRatio, + "", + ""); + I_Method0(const osg::LineSegment *, getOriginalLineSegment, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_P1__getOriginalLineSegment, + "", + ""); + I_Method0(const osg::LineSegment *, getLocalLineSegment, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_P1__getLocalLineSegment, + "", + ""); + I_Method0(osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __C5_osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __osg_Geode_P1__getGeode, + "", + ""); + I_Method0(const osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __C5_osg_Geode_P1__getGeode, + "", + ""); + I_Method0(osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::RefMatrix *, getMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getMatrix, + "", + ""); + I_Method0(const osg::RefMatrix *, getInverseMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getInverseMatrix, + "", + ""); + I_Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList, + Properties::NON_VIRTUAL, + __C5_VecIndexList_R1__getVecIndexList, + "", + ""); + I_Method0(int, getPrimitiveIndex, + Properties::NON_VIRTUAL, + __int__getPrimitiveIndex, + "", + ""); + 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 tessellated sphere rendered."); + I_Constructor1(IN, const osgUtil::Hit &, hit, + Properties::NON_EXPLICIT, + ____Hit__C5_Hit_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getWorldIntersectNormal, + "", + ""); + I_Method0(float, getRatio, + Properties::NON_VIRTUAL, + __float__getRatio, + "", + ""); + I_Method0(const osg::LineSegment *, getOriginalLineSegment, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_P1__getOriginalLineSegment, + "", + ""); + I_Method0(const osg::LineSegment *, getLocalLineSegment, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_P1__getLocalLineSegment, + "", + ""); + I_Method0(osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, + __C5_osg_NodePath_R1__getNodePath, + "", + ""); + I_Method0(osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __osg_Geode_P1__getGeode, + "", + ""); + I_Method0(const osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __C5_osg_Geode_P1__getGeode, + "", + ""); + I_Method0(osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); + I_Method0(const osg::RefMatrix *, getMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getMatrix, + "", + ""); + I_Method0(const osg::RefMatrix *, getInverseMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getInverseMatrix, + "", + ""); + I_Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList, + Properties::NON_VIRTUAL, + __C5_VecIndexList_R1__getVecIndexList, + "", + ""); + I_Method0(int, getPrimitiveIndex, + Properties::NON_VIRTUAL, + __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); + I_PublicMemberProperty(osg::NodePath, _nodePath); + I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, _geode); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _matrix); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _inverse); + I_PublicMemberProperty(osgUtil::Hit::VecIndexList, _vecIndexList); + I_PublicMemberProperty(int, _primitiveIndex); + I_PublicMemberProperty(osg::Vec3, _intersectPoint); + I_PublicMemberProperty(osg::Vec3, _intersectNormal); + I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _originalLineSegment); + I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _localLineSegment); + I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, _geode); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _matrix); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _inverse); END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList); @@ -197,15 +548,16 @@ BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) + I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); I_Constructor0(____IntersectVisitor, "", ""); I_Method0(void, reset, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, Properties::NON_VIRTUAL, __void__addLineSegment__osg_LineSegment_P1, @@ -249,8 +601,310 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) I_Method0(osg::Vec3, getEyePoint, Properties::VIRTUAL, __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Constructor0(____IntersectVisitor, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __HitList_R1__getHitList__C5_osg_LineSegment_P1, + "", + ""); + I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, + Properties::NON_VIRTUAL, + __int__getNumHits__C5_osg_LineSegment_P1, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, + Properties::NON_VIRTUAL, + __LineSegmentHitListMap_R1__getSegHitList, + "", + ""); + I_Method0(bool, hits, + Properties::NON_VIRTUAL, + __bool__hits, + "", + ""); + I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, + Properties::NON_VIRTUAL, + __void__setLODSelectionMode__LODSelectionMode, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, + Properties::NON_VIRTUAL, + __LODSelectionMode__getLODSelectionMode, + "", + ""); + I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "", + ""); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList); + +TYPE_NAME_ALIAS(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap); + +BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) + I_EnumLabel(osgUtil::IntersectVisitor::USE_HIGHEST_LEVEL_OF_DETAIL); + I_EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____IntersectVisitor, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __HitList_R1__getHitList__C5_osg_LineSegment_P1, + "", + ""); + I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, + Properties::NON_VIRTUAL, + __int__getNumHits__C5_osg_LineSegment_P1, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, + Properties::NON_VIRTUAL, + __LineSegmentHitListMap_R1__getSegHitList, + "", + ""); + I_Method0(bool, hits, + Properties::NON_VIRTUAL, + __bool__hits, + "", + ""); + I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, + Properties::NON_VIRTUAL, + __void__setLODSelectionMode__LODSelectionMode, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, + Properties::NON_VIRTUAL, + __LODSelectionMode__getLODSelectionMode, + "", + ""); + I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "", + ""); + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Constructor0(____IntersectVisitor, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __HitList_R1__getHitList__C5_osg_LineSegment_P1, + "", + ""); + I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, + Properties::NON_VIRTUAL, + __int__getNumHits__C5_osg_LineSegment_P1, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, + Properties::NON_VIRTUAL, + __LineSegmentHitListMap_R1__getSegHitList, + "", + ""); + I_Method0(bool, hits, + Properties::NON_VIRTUAL, + __bool__hits, + "", + ""); + I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, + Properties::NON_VIRTUAL, + __void__setLODSelectionMode__LODSelectionMode, + "", + ""); + I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, + Properties::NON_VIRTUAL, + __LODSelectionMode__getLODSelectionMode, + "", + ""); + I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "", + ""); I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, @@ -303,6 +957,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) + I_BaseType(osgUtil::IntersectVisitor); 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, ____PickVisitor__C5_osg_Viewport_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__float__float, @@ -314,20 +969,76 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) "", ""); I_Method1(void, apply, IN, osg::Projection &, projection, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Camera &, camera, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::NON_VIRTUAL, __void__apply__osg_Camera_R1, "", ""); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >); - -STD_VECTOR_REFLECTOR(std::vector< int >); - -STD_VECTOR_REFLECTOR(std::vector< osgUtil::Hit >); +BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) + I_BaseType(osgUtil::IntersectVisitor); + 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, + ____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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::NON_VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::NON_VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); +END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/IntersectionVisitor.cpp b/src/osgWrappers/osgUtil/IntersectionVisitor.cpp index d057ded76..3dcae046c 100644 --- a/src/osgWrappers/osgUtil/IntersectionVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectionVisitor.cpp @@ -10,18 +10,19 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include -#include -#include #include #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -33,6 +34,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) + I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); I_ConstructorWithDefaults2(IN, osgUtil::Intersector *, intersector, 0, IN, osgUtil::IntersectionVisitor::ReadCallback *, readCallback, 0, ____IntersectionVisitor__Intersector_P1__ReadCallback_P1, @@ -41,8 +43,478 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) I_Method0(void, reset, Properties::VIRTUAL, __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, setIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, + __void__setIntersector__Intersector_P1, + "Set the intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method0(osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, + __Intersector_P1__getIntersector, + "Get the intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method0(const osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, + __C5_Intersector_P1__getIntersector, + "Get the const intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method1(void, setReadCallback, IN, osgUtil::IntersectionVisitor::ReadCallback *, rc, + Properties::NON_VIRTUAL, + __void__setReadCallback__ReadCallback_P1, + "Set the read callback. ", + ""); + I_Method0(osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, + __ReadCallback_P1__getReadCallback, + "Get the read callback. ", + ""); + I_Method0(const osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, + __C5_ReadCallback_P1__getReadCallback, + "Get the const read callback. ", + ""); + I_Method1(void, pushWindowMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushWindowMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method1(void, pushWindowMatrix, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__pushWindowMatrix__osg_Viewport_P1, + "", + ""); + I_Method0(void, popWindowMatrix, + Properties::NON_VIRTUAL, + __void__popWindowMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getWindowMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getWindowMatrix, + "", + ""); + I_Method1(void, pushProjectionMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushProjectionMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popProjectionMatrix, + Properties::NON_VIRTUAL, + __void__popProjectionMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getProjectionMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getProjectionMatrix, + "", + ""); + I_Method1(void, pushViewMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushViewMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popViewMatrix, + Properties::NON_VIRTUAL, + __void__popViewMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getViewMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getViewMatrix, + "", + ""); + I_Method1(void, pushModelMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushModelMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popModelMatrix, + Properties::NON_VIRTUAL, + __void__popModelMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getModelMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getModelMatrix, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, projection, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, osgUtil::Intersector *, intersector, 0, IN, osgUtil::IntersectionVisitor::ReadCallback *, readCallback, 0, + ____IntersectionVisitor__Intersector_P1__ReadCallback_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, + __void__setIntersector__Intersector_P1, + "Set the intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method0(osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, + __Intersector_P1__getIntersector, + "Get the intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method0(const osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, + __C5_Intersector_P1__getIntersector, + "Get the const intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method1(void, setReadCallback, IN, osgUtil::IntersectionVisitor::ReadCallback *, rc, + Properties::NON_VIRTUAL, + __void__setReadCallback__ReadCallback_P1, + "Set the read callback. ", + ""); + I_Method0(osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, + __ReadCallback_P1__getReadCallback, + "Get the read callback. ", + ""); + I_Method0(const osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, + __C5_ReadCallback_P1__getReadCallback, + "Get the const read callback. ", + ""); + I_Method1(void, pushWindowMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushWindowMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method1(void, pushWindowMatrix, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__pushWindowMatrix__osg_Viewport_P1, + "", + ""); + I_Method0(void, popWindowMatrix, + Properties::NON_VIRTUAL, + __void__popWindowMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getWindowMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getWindowMatrix, + "", + ""); + I_Method1(void, pushProjectionMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushProjectionMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popProjectionMatrix, + Properties::NON_VIRTUAL, + __void__popProjectionMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getProjectionMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getProjectionMatrix, + "", + ""); + I_Method1(void, pushViewMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushViewMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popViewMatrix, + Properties::NON_VIRTUAL, + __void__popViewMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getViewMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getViewMatrix, + "", + ""); + I_Method1(void, pushModelMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushModelMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popModelMatrix, + Properties::NON_VIRTUAL, + __void__popModelMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getModelMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getModelMatrix, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, projection, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + I_SimpleProperty(osgUtil::Intersector *, Intersector, + __Intersector_P1__getIntersector, + __void__setIntersector__Intersector_P1); + I_SimpleProperty(osg::RefMatrix *, ModelMatrix, + __osg_RefMatrix_P1__getModelMatrix, + 0); + I_SimpleProperty(osg::RefMatrix *, ProjectionMatrix, + __osg_RefMatrix_P1__getProjectionMatrix, + 0); + I_SimpleProperty(osgUtil::IntersectionVisitor::ReadCallback *, ReadCallback, + __ReadCallback_P1__getReadCallback, + __void__setReadCallback__ReadCallback_P1); + I_SimpleProperty(osg::RefMatrix *, ViewMatrix, + __osg_RefMatrix_P1__getViewMatrix, + 0); + I_SimpleProperty(osg::RefMatrix *, WindowMatrix, + __osg_RefMatrix_P1__getWindowMatrix, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_ConstructorWithDefaults2(IN, osgUtil::Intersector *, intersector, 0, IN, osgUtil::IntersectionVisitor::ReadCallback *, readCallback, 0, + ____IntersectionVisitor__Intersector_P1__ReadCallback_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, + __void__setIntersector__Intersector_P1, + "Set the intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method0(osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, + __Intersector_P1__getIntersector, + "Get the intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method0(const osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, + __C5_Intersector_P1__getIntersector, + "Get the const intersector that will be used to intersect with the scene, and to store any hits that occur. ", + ""); + I_Method1(void, setReadCallback, IN, osgUtil::IntersectionVisitor::ReadCallback *, rc, + Properties::NON_VIRTUAL, + __void__setReadCallback__ReadCallback_P1, + "Set the read callback. ", + ""); + I_Method0(osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, + __ReadCallback_P1__getReadCallback, + "Get the read callback. ", + ""); + I_Method0(const osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, + __C5_ReadCallback_P1__getReadCallback, + "Get the const read callback. ", + ""); + I_Method1(void, pushWindowMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushWindowMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method1(void, pushWindowMatrix, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__pushWindowMatrix__osg_Viewport_P1, + "", + ""); + I_Method0(void, popWindowMatrix, + Properties::NON_VIRTUAL, + __void__popWindowMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getWindowMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getWindowMatrix, + "", + ""); + I_Method1(void, pushProjectionMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushProjectionMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popProjectionMatrix, + Properties::NON_VIRTUAL, + __void__popProjectionMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getProjectionMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getProjectionMatrix, + "", + ""); + I_Method1(void, pushViewMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushViewMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popViewMatrix, + Properties::NON_VIRTUAL, + __void__popViewMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getViewMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getViewMatrix, + "", + ""); + I_Method1(void, pushModelMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__pushModelMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(void, popModelMatrix, + Properties::NON_VIRTUAL, + __void__popModelMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getModelMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getModelMatrix, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, projection, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::VIRTUAL, + __void__apply__osg_Camera_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, osgUtil::Intersector *, intersector, 0, IN, osgUtil::IntersectionVisitor::ReadCallback *, readCallback, 0, + ____IntersectionVisitor__Intersector_P1__ReadCallback_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); I_Method1(void, setIntersector, IN, osgUtil::Intersector *, intersector, Properties::NON_VIRTUAL, __void__setIntersector__Intersector_P1, @@ -204,6 +676,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor::ReadCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____ReadCallback, "", @@ -213,6 +686,29 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor::ReadCallback) __osg_Node_P1__readNodeFile__C5_std_string_R1, "", ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor::ReadCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ReadCallback, + "", + ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); END_REFLECTOR BEGIN_ENUM_REFLECTOR(osgUtil::Intersector::CoordinateFrame) @@ -224,6 +720,202 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Intersector) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, osgUtil::Intersector::CoordinateFrame, cf, osgUtil::Intersector::MODEL, + Properties::NON_EXPLICIT, + ____Intersector__CoordinateFrame, + "", + ""); + I_Method1(void, setCoordinateFrame, IN, osgUtil::Intersector::CoordinateFrame, cf, + Properties::NON_VIRTUAL, + __void__setCoordinateFrame__CoordinateFrame, + "", + ""); + I_Method0(osgUtil::Intersector::CoordinateFrame, getCoordinateFrame, + Properties::NON_VIRTUAL, + __CoordinateFrame__getCoordinateFrame, + "", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::PURE_VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::PURE_VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::PURE_VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::PURE_VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::PURE_VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_Method0(bool, disabled, + Properties::NON_VIRTUAL, + __bool__disabled, + "", + ""); + I_Method0(void, incrementDisabledCount, + Properties::NON_VIRTUAL, + __void__incrementDisabledCount, + "", + ""); + I_Method0(void, decrementDisabledCount, + Properties::NON_VIRTUAL, + __void__decrementDisabledCount, + "", + ""); + I_ConstructorWithDefaults1(IN, osgUtil::Intersector::CoordinateFrame, cf, osgUtil::Intersector::MODEL, + Properties::NON_EXPLICIT, + ____Intersector__CoordinateFrame, + "", + ""); + I_Method1(void, setCoordinateFrame, IN, osgUtil::Intersector::CoordinateFrame, cf, + Properties::NON_VIRTUAL, + __void__setCoordinateFrame__CoordinateFrame, + "", + ""); + I_Method0(osgUtil::Intersector::CoordinateFrame, getCoordinateFrame, + Properties::NON_VIRTUAL, + __CoordinateFrame__getCoordinateFrame, + "", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::PURE_VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::PURE_VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::PURE_VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::PURE_VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::PURE_VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_Method0(bool, disabled, + Properties::NON_VIRTUAL, + __bool__disabled, + "", + ""); + I_Method0(void, incrementDisabledCount, + Properties::NON_VIRTUAL, + __void__incrementDisabledCount, + "", + ""); + I_Method0(void, decrementDisabledCount, + Properties::NON_VIRTUAL, + __void__decrementDisabledCount, + "", + ""); + I_SimpleProperty(osgUtil::Intersector::CoordinateFrame, CoordinateFrame, + __CoordinateFrame__getCoordinateFrame, + __void__setCoordinateFrame__CoordinateFrame); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::Intersector::CoordinateFrame) + I_EnumLabel(osgUtil::Intersector::WINDOW); + I_EnumLabel(osgUtil::Intersector::PROJECTION); + I_EnumLabel(osgUtil::Intersector::VIEW); + I_EnumLabel(osgUtil::Intersector::MODEL); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Intersector) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, osgUtil::Intersector::CoordinateFrame, cf, osgUtil::Intersector::MODEL, + Properties::NON_EXPLICIT, + ____Intersector__CoordinateFrame, + "", + ""); + I_Method1(void, setCoordinateFrame, IN, osgUtil::Intersector::CoordinateFrame, cf, + Properties::NON_VIRTUAL, + __void__setCoordinateFrame__CoordinateFrame, + "", + ""); + I_Method0(osgUtil::Intersector::CoordinateFrame, getCoordinateFrame, + Properties::NON_VIRTUAL, + __CoordinateFrame__getCoordinateFrame, + "", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::PURE_VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::PURE_VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::PURE_VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::PURE_VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::PURE_VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_Method0(bool, disabled, + Properties::NON_VIRTUAL, + __bool__disabled, + "", + ""); + I_Method0(void, incrementDisabledCount, + Properties::NON_VIRTUAL, + __void__incrementDisabledCount, + "", + ""); + I_Method0(void, decrementDisabledCount, + Properties::NON_VIRTUAL, + __void__decrementDisabledCount, + "", + ""); I_ConstructorWithDefaults1(IN, osgUtil::Intersector::CoordinateFrame, cf, osgUtil::Intersector::MODEL, Properties::NON_EXPLICIT, ____Intersector__CoordinateFrame, @@ -293,6 +985,55 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Intersector > >, osgUtil::In BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectorGroup) I_BaseType(osgUtil::Intersector); + I_BaseType(osgUtil::Intersector); + I_Constructor0(____IntersectorGroup, + "", + ""); + I_Method1(void, addIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, + __void__addIntersector__Intersector_P1, + "Add an Intersector. ", + ""); + I_Method0(osgUtil::IntersectorGroup::Intersectors &, getIntersectors, + Properties::NON_VIRTUAL, + __Intersectors_R1__getIntersectors, + "Get the list of intersector. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the list of intersectors. ", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::VIRTUAL, + __bool__containsIntersections, + "", + ""); I_Constructor0(____IntersectorGroup, "", ""); @@ -346,44 +1087,109 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectorGroup) 0); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Intersector >) - I_Constructor0(____ref_ptr, +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Intersector > >, osgUtil::IntersectorGroup::Intersectors); + +BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectorGroup) + I_BaseType(osgUtil::Intersector); + I_BaseType(osgUtil::Intersector); + I_Constructor0(____IntersectorGroup, "", ""); - I_Constructor1(IN, osgUtil::Intersector *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, + I_Method1(void, addIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, + __void__addIntersector__Intersector_P1, + "Add an Intersector. ", + ""); + I_Method0(osgUtil::IntersectorGroup::Intersectors &, getIntersectors, + Properties::NON_VIRTUAL, + __Intersectors_R1__getIntersectors, + "Get the list of intersector. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the list of intersectors. ", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_Constructor0(____IntersectorGroup, "", ""); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::Intersector > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgUtil::Intersector *, get, + I_Method1(void, addIntersector, IN, osgUtil::Intersector *, intersector, Properties::NON_VIRTUAL, - __T_P1__get, + __void__addIntersector__Intersector_P1, + "Add an Intersector. ", + ""); + I_Method0(osgUtil::IntersectorGroup::Intersectors &, getIntersectors, + Properties::NON_VIRTUAL, + __Intersectors_R1__getIntersectors, + "Get the list of intersector. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the list of intersectors. ", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, "", ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, + __bool__enter__C5_osg_Node_R1, "", ""); - I_Method0(osgUtil::Intersector *, release, - Properties::NON_VIRTUAL, - __T_P1__release, + I_Method0(void, leave, + Properties::VIRTUAL, + __void__leave, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::Intersector > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, "", ""); - I_SimpleProperty(osgUtil::Intersector *, , - __T_P1__get, + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_SimpleProperty(osgUtil::IntersectorGroup::Intersectors &, Intersectors, + __Intersectors_R1__getIntersectors, 0); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::Intersector > >); - diff --git a/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp b/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp index 95c6e2ce8..f45fe48b2 100644 --- a/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp +++ b/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp @@ -10,10 +10,12 @@ #include #include -#include -#include -#include +#include +#include +#include #include +#include +#include #include #include @@ -29,6 +31,191 @@ TYPE_NAME_ALIAS(std::multiset< osgUtil::LineSegmentIntersector::Intersection >, BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) I_BaseType(osgUtil::Intersector); + I_BaseType(osgUtil::Intersector); + I_Constructor2(IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the secified start and end points in MODEL coordinates. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__CoordinateFrame__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the secified start and end points in the specified coordinate frame. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, x, IN, double, y, + ____LineSegmentIntersector__CoordinateFrame__double__double, + "Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). ", + "In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1). "); + I_Method1(void, insertIntersection, IN, const osgUtil::LineSegmentIntersector::Intersection &, intersection, + Properties::NON_VIRTUAL, + __void__insertIntersection__C5_Intersection_R1, + "", + ""); + I_Method0(osgUtil::LineSegmentIntersector::Intersections &, getIntersections, + Properties::NON_VIRTUAL, + __Intersections_R1__getIntersections, + "", + ""); + I_Method0(osgUtil::LineSegmentIntersector::Intersection, getFirstIntersection, + Properties::NON_VIRTUAL, + __Intersection__getFirstIntersection, + "", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the secified start and end points in MODEL coordinates. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__CoordinateFrame__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the secified start and end points in the specified coordinate frame. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, x, IN, double, y, + ____LineSegmentIntersector__CoordinateFrame__double__double, + "Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). ", + "In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1). "); + I_Method1(void, insertIntersection, IN, const osgUtil::LineSegmentIntersector::Intersection &, intersection, + Properties::NON_VIRTUAL, + __void__insertIntersection__C5_Intersection_R1, + "", + ""); + I_Method0(osgUtil::LineSegmentIntersector::Intersections &, getIntersections, + Properties::NON_VIRTUAL, + __Intersections_R1__getIntersections, + "", + ""); + I_Method0(osgUtil::LineSegmentIntersector::Intersection, getFirstIntersection, + Properties::NON_VIRTUAL, + __Intersection__getFirstIntersection, + "", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::VIRTUAL, + __bool__containsIntersections, + "", + ""); + I_SimpleProperty(osgUtil::LineSegmentIntersector::Intersection, FirstIntersection, + __Intersection__getFirstIntersection, + 0); + I_SimpleProperty(osgUtil::LineSegmentIntersector::Intersections &, Intersections, + __Intersections_R1__getIntersections, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::multiset< osgUtil::LineSegmentIntersector::Intersection >, osgUtil::LineSegmentIntersector::Intersections); + +BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) + I_BaseType(osgUtil::Intersector); + I_BaseType(osgUtil::Intersector); + I_Constructor2(IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the secified start and end points in MODEL coordinates. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__CoordinateFrame__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the secified start and end points in the specified coordinate frame. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, x, IN, double, y, + ____LineSegmentIntersector__CoordinateFrame__double__double, + "Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). ", + "In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1). "); + I_Method1(void, insertIntersection, IN, const osgUtil::LineSegmentIntersector::Intersection &, intersection, + Properties::NON_VIRTUAL, + __void__insertIntersection__C5_Intersection_R1, + "", + ""); + I_Method0(osgUtil::LineSegmentIntersector::Intersections &, getIntersections, + Properties::NON_VIRTUAL, + __Intersections_R1__getIntersections, + "", + ""); + I_Method0(osgUtil::LineSegmentIntersector::Intersection, getFirstIntersection, + Properties::NON_VIRTUAL, + __Intersection__getFirstIntersection, + "", + ""); + I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, + __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, + "", + ""); + I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_Method0(void, leave, + Properties::VIRTUAL, + __void__leave, + "", + ""); + I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, containsIntersections, + Properties::VIRTUAL, + __bool__containsIntersections, + "", + ""); I_Constructor2(IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, ____LineSegmentIntersector__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, "Construct a LineSegmentIntersector the runs between the secified start and end points in MODEL coordinates. ", @@ -99,6 +286,29 @@ TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::LineSegmentIntersector::In TYPE_NAME_ALIAS(std::vector< double >, osgUtil::LineSegmentIntersector::Intersection::RatioList); BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) + I_Constructor0(____Intersection, + "", + ""); + I_Method0(const osg::Vec3d &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(osg::Vec3d, getWorldIntersectPoint, + Properties::NON_VIRTUAL, + __osg_Vec3d__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, + __osg_Vec3__getWorldIntersectNormal, + "", + ""); I_Constructor0(____Intersection, "", ""); @@ -143,9 +353,83 @@ BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::IndexList, indexList); I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::RatioList, ratioList); I_PublicMemberProperty(unsigned int, primitiveIndex); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); END_REFLECTOR -STD_SET_REFLECTOR(std::multiset< osgUtil::LineSegmentIntersector::Intersection >); +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::LineSegmentIntersector::Intersection::IndexList); -STD_VECTOR_REFLECTOR(std::vector< double >); +TYPE_NAME_ALIAS(std::vector< double >, osgUtil::LineSegmentIntersector::Intersection::RatioList); + +BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) + I_Constructor0(____Intersection, + "", + ""); + I_Method0(const osg::Vec3d &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(osg::Vec3d, getWorldIntersectPoint, + Properties::NON_VIRTUAL, + __osg_Vec3d__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, + __osg_Vec3__getWorldIntersectNormal, + "", + ""); + I_Constructor0(____Intersection, + "", + ""); + I_Method0(const osg::Vec3d &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getLocalIntersectPoint, + "", + ""); + I_Method0(osg::Vec3d, getWorldIntersectPoint, + Properties::NON_VIRTUAL, + __osg_Vec3d__getWorldIntersectPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + "", + ""); + I_Method0(osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, + __osg_Vec3__getWorldIntersectNormal, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, LocalIntersectNormal, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + 0); + I_SimpleProperty(const osg::Vec3d &, LocalIntersectPoint, + __C5_osg_Vec3d_R1__getLocalIntersectPoint, + 0); + I_SimpleProperty(osg::Vec3, WorldIntersectNormal, + __osg_Vec3__getWorldIntersectNormal, + 0); + I_SimpleProperty(osg::Vec3d, WorldIntersectPoint, + __osg_Vec3d__getWorldIntersectPoint, + 0); + I_PublicMemberProperty(double, ratio); + I_PublicMemberProperty(osg::NodePath, nodePath); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); + I_PublicMemberProperty(osg::Vec3d, localIntersectionPoint); + I_PublicMemberProperty(osg::Vec3, localIntersectionNormal); + I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::IndexList, indexList); + I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::RatioList, ratioList); + I_PublicMemberProperty(unsigned int, primitiveIndex); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); +END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/Optimizer.cpp b/src/osgWrappers/osgUtil/Optimizer.cpp index abddc962e..8743a64b0 100644 --- a/src/osgWrappers/osgUtil/Optimizer.cpp +++ b/src/osgWrappers/osgUtil/Optimizer.cpp @@ -10,25 +10,12 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -41,6 +28,84 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::BaseOptimizerVisitor) I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation, + ____BaseOptimizerVisitor__Optimizer_P1__unsigned_int, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1, + "", + ""); + I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation, + ____BaseOptimizerVisitor__Optimizer_P1__unsigned_int, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::BaseOptimizerVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation, + ____BaseOptimizerVisitor__Optimizer_P1__unsigned_int, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1, + "", + ""); + I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1, + "", + ""); I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation, ____BaseOptimizerVisitor__Optimizer_P1__unsigned_int, "", @@ -89,6 +154,89 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) + I_Constructor0(____Optimizer, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "Reset internal data to initial state - the getPermissibleOptionsMap is cleared. ", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, + "", + ""); + I_Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object, + Properties::NON_VIRTUAL, + __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Node_P1__unsigned_int, + "", + ""); I_Constructor0(____Optimizer, "", ""); @@ -181,49 +329,221 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CheckGeometryVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____CheckGeometryVisitor__Optimizer_P1, - "default to traversing all children. ", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, checkGeode, IN, osg::Geode &, geode, - Properties::NON_VIRTUAL, - __void__checkGeode__osg_Geode_R1, - "", - ""); +BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) + I_EnumLabel(osgUtil::Optimizer::FLATTEN_STATIC_TRANSFORMS); + I_EnumLabel(osgUtil::Optimizer::REMOVE_REDUNDANT_NODES); + I_EnumLabel(osgUtil::Optimizer::REMOVE_LOADED_PROXY_NODES); + I_EnumLabel(osgUtil::Optimizer::COMBINE_ADJACENT_LODS); + I_EnumLabel(osgUtil::Optimizer::SHARE_DUPLICATE_STATE); + I_EnumLabel(osgUtil::Optimizer::MERGE_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::CHECK_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::SPATIALIZE_GROUPS); + I_EnumLabel(osgUtil::Optimizer::COPY_SHARED_NODES); + I_EnumLabel(osgUtil::Optimizer::TRISTRIP_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::TESSELLATE_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::OPTIMIZE_TEXTURE_SETTINGS); + I_EnumLabel(osgUtil::Optimizer::MERGE_GEODES); + I_EnumLabel(osgUtil::Optimizer::FLATTEN_BILLBOARDS); + I_EnumLabel(osgUtil::Optimizer::TEXTURE_ATLAS_BUILDER); + I_EnumLabel(osgUtil::Optimizer::STATIC_OBJECT_DETECTION); + I_EnumLabel(osgUtil::Optimizer::DEFAULT_OPTIMIZATIONS); + I_EnumLabel(osgUtil::Optimizer::ALL_OPTIMIZATIONS); 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, - Properties::NON_EXPLICIT, - ____CombineLODsVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::LOD &, lod, - Properties::VIRTUAL, - __void__apply__osg_LOD_R1, - "", - ""); - I_Method0(void, combineLODs, +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) + I_Constructor0(____Optimizer, + "", + ""); + I_Method0(void, reset, Properties::NON_VIRTUAL, - __void__combineLODs, + __void__reset, + "Reset internal data to initial state - the getPermissibleOptionsMap is cleared. ", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, "", ""); - I_PublicMemberProperty(osgUtil::Optimizer::CombineLODsVisitor::GroupList, _groupList); + I_Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object, + Properties::NON_VIRTUAL, + __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Constructor0(____Optimizer, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "Reset internal data to initial state - the getPermissibleOptionsMap is cleared. ", + ""); + I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, + "", + ""); + I_Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object, + Properties::NON_VIRTUAL, + __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObject__C5_osg_Node_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateSet_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateAttribute_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_osg_Drawable_P1__unsigned_int, + "", + ""); + I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::NON_VIRTUAL, + __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::CombineStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, + ____CombineStaticTransformsVisitor__Optimizer_P1, + "", + ""); + I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + Properties::VIRTUAL, + __void__apply__osg_MatrixTransform_R1, + "", + ""); + I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, + Properties::NON_VIRTUAL, + __bool__removeTransforms__osg_Node_P1, + "", + ""); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, ____CombineStaticTransformsVisitor__Optimizer_P1, @@ -241,92 +561,32 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) ""); END_REFLECTOR -TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList); - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CopySharedSubgraphsVisitor) +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) + I_BaseType(osgUtil::BaseOptimizerVisitor); I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, - ____CopySharedSubgraphsVisitor__Optimizer_P1, + ____CombineStaticTransformsVisitor__Optimizer_P1, "", ""); - I_Method1(void, apply, IN, osg::Node &, node, + I_Method1(void, apply, IN, osg::MatrixTransform &, transform, Properties::VIRTUAL, - __void__apply__osg_Node_R1, + __void__apply__osg_MatrixTransform_R1, "", ""); - I_Method0(void, copySharedNodes, + I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, Properties::NON_VIRTUAL, - __void__copySharedNodes, + __bool__removeTransforms__osg_Node_P1, "", ""); - I_PublicMemberProperty(osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList, _sharedNodeList); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< osg::NodePath >, osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList); - -TYPE_NAME_ALIAS(std::map< osg::Billboard * COMMA osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList >, osgUtil::Optimizer::FlattenBillboardVisitor::BillboardNodePathMap); - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenBillboardVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, - ____FlattenBillboardVisitor__Optimizer_P1, + ____CombineStaticTransformsVisitor__Optimizer_P1, "", ""); - I_Method0(void, reset, + I_Method1(void, apply, IN, osg::MatrixTransform &, transform, Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method0(void, process, - Properties::NON_VIRTUAL, - __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, - Properties::NON_EXPLICIT, - ____FlattenStaticTransformsVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::Node &, geode, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Billboard &, geode, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method1(void, apply, IN, osg::ProxyNode &, node, - Properties::VIRTUAL, - __void__apply__osg_ProxyNode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::PagedLOD &, node, - Properties::VIRTUAL, - __void__apply__osg_PagedLOD_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Transform &, transform, - Properties::VIRTUAL, - __void__apply__osg_Transform_R1, + __void__apply__osg_MatrixTransform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, @@ -337,6 +597,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____IsOperationPermissibleForObjectCallback, "", @@ -361,459 +622,73 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallba __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, - Properties::NON_EXPLICIT, - ____MergeGeodesVisitor__Optimizer_P1, - "default to traversing all children. ", - ""); - I_Method1(void, apply, IN, osg::Group &, group, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, Properties::VIRTUAL, - __void__apply__osg_Group_R1, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, "", ""); - I_Method1(bool, mergeGeodes, IN, osg::Group &, group, - Properties::NON_VIRTUAL, - __bool__mergeGeodes__osg_Group_R1, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeometryVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____MergeGeometryVisitor__Optimizer_P1, - "default to traversing all children. ", - ""); - I_Method1(void, setTargetMaximumNumberOfVertices, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __void__setTargetMaximumNumberOfVertices__unsigned_int, - "", - ""); - I_Method0(unsigned int, getTargetMaximumNumberOfVertices, - Properties::NON_VIRTUAL, - __unsigned_int__getTargetMaximumNumberOfVertices, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Billboard &, x, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method1(bool, mergeGeode, IN, osg::Geode &, geode, - Properties::NON_VIRTUAL, - __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, - Properties::NON_EXPLICIT, - ____RemoveEmptyNodesVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, group, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_Method0(void, removeEmptyNodes, - Properties::NON_VIRTUAL, - __void__removeEmptyNodes, - "", - ""); - I_PublicMemberProperty(osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList, _redundantNodeList); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList); - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____RemoveLoadedProxyNodesVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::ProxyNode &, group, - Properties::VIRTUAL, - __void__apply__osg_ProxyNode_R1, - "", - ""); - I_Method0(void, removeRedundantNodes, - Properties::NON_VIRTUAL, - __void__removeRedundantNodes, - "", - ""); - I_PublicMemberProperty(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList, _redundantNodeList); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList); - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____RemoveRedundantNodesVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, group, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Transform &, transform, - Properties::VIRTUAL, - __void__apply__osg_Transform_R1, - "", - ""); - I_Method1(bool, isOperationPermissible, IN, osg::Node &, node, - Properties::NON_VIRTUAL, - __bool__isOperationPermissible__osg_Node_R1, - "", - ""); - I_Method0(void, removeRedundantNodes, - Properties::NON_VIRTUAL, - __void__removeRedundantNodes, - "", - ""); - I_PublicMemberProperty(osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList, _redundantNodeList); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList); - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::SpatializeGroupsVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____SpatializeGroupsVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, group, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_MethodWithDefaults1(bool, divide, IN, unsigned int, maxNumTreesPerCell, 8, - Properties::NON_VIRTUAL, - __bool__divide__unsigned_int, - "", - ""); - I_Method2(bool, divide, IN, osg::Group *, group, IN, unsigned int, maxNumTreesPerCell, - Properties::NON_VIRTUAL, - __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, - Properties::NON_EXPLICIT, - ____StateVisitor__Optimizer_P1, - "default to traversing all children. ", - ""); - I_Method0(void, reset, - Properties::VIRTUAL, - __void__reset, - "empty visitor, make it ready for next traversal. ", - ""); - I_Method1(void, apply, IN, osg::Node &, node, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method0(void, optimize, - Properties::NON_VIRTUAL, - __void__optimize, - "", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::StaticObjectDetectionVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____StaticObjectDetectionVisitor__Optimizer_P1, - "default to traversing all children. ", - ""); - I_Method1(void, apply, IN, osg::Node &, node, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::TessellateVisitor::GroupList); - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TessellateVisitor) - I_BaseType(osgUtil::BaseOptimizerVisitor); - I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, - Properties::NON_EXPLICIT, - ____TessellateVisitor__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_PublicMemberProperty(osgUtil::Optimizer::TessellateVisitor::GroupList, _groupList); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TextureAtlasBuilder) - I_Constructor0(____TextureAtlasBuilder, +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____IsOperationPermissibleForObjectCallback, "", ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, "", ""); - I_Method2(void, setMaximumAtlasSize, IN, unsigned int, width, IN, unsigned int, height, - Properties::NON_VIRTUAL, - __void__setMaximumAtlasSize__unsigned_int__unsigned_int, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, "", ""); - I_Method0(unsigned int, getMaximumAtlasWidth, - Properties::NON_VIRTUAL, - __unsigned_int__getMaximumAtlasWidth, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, "", ""); - I_Method0(unsigned int, getMaximumAtlasHeight, - Properties::NON_VIRTUAL, - __unsigned_int__getMaximumAtlasHeight, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, "", ""); - I_Method1(void, setMargin, IN, unsigned int, margin, - Properties::NON_VIRTUAL, - __void__setMargin__unsigned_int, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, "", ""); - I_Method0(unsigned int, getMargin, - Properties::NON_VIRTUAL, - __unsigned_int__getMargin, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, "", ""); - I_Method1(void, addSource, IN, const osg::Image *, image, - Properties::NON_VIRTUAL, - __void__addSource__C5_osg_Image_P1, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, "", ""); - I_Method1(void, addSource, IN, const osg::Texture2D *, texture, - Properties::NON_VIRTUAL, - __void__addSource__C5_osg_Texture2D_P1, + I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::VIRTUAL, + __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, "", ""); - I_Method0(unsigned int, getNumSources, - Properties::NON_VIRTUAL, - __unsigned_int__getNumSources, - "", - ""); - I_Method1(const osg::Image *, getSourceImage, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_osg_Image_P1__getSourceImage__unsigned_int, - "", - ""); - I_Method1(const osg::Texture2D *, getSourceTexture, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_osg_Texture2D_P1__getSourceTexture__unsigned_int, - "", - ""); - I_Method0(void, buildAtlas, - Properties::NON_VIRTUAL, - __void__buildAtlas, - "", - ""); - I_Method1(osg::Image *, getImageAtlas, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __osg_Image_P1__getImageAtlas__unsigned_int, - "", - ""); - I_Method1(osg::Texture2D *, getTextureAtlas, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __osg_Texture2D_P1__getTextureAtlas__unsigned_int, - "", - ""); - I_Method1(osg::Matrix, getTextureMatrix, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __osg_Matrix__getTextureMatrix__unsigned_int, - "", - ""); - I_Method1(osg::Image *, getImageAtlas, IN, const osg::Image *, image, - Properties::NON_VIRTUAL, - __osg_Image_P1__getImageAtlas__C5_osg_Image_P1, - "", - ""); - I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Image *, image, - Properties::NON_VIRTUAL, - __osg_Texture2D_P1__getTextureAtlas__C5_osg_Image_P1, - "", - ""); - I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Image *, image, - Properties::NON_VIRTUAL, - __osg_Matrix__getTextureMatrix__C5_osg_Image_P1, - "", - ""); - I_Method1(osg::Image *, getImageAtlas, IN, const osg::Texture2D *, textue, - Properties::NON_VIRTUAL, - __osg_Image_P1__getImageAtlas__C5_osg_Texture2D_P1, - "", - ""); - I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Texture2D *, texture, - Properties::NON_VIRTUAL, - __osg_Texture2D_P1__getTextureAtlas__C5_osg_Texture2D_P1, - "", - ""); - I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Texture2D *, texture, - Properties::NON_VIRTUAL, - __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, - Properties::NON_EXPLICIT, - ____TextureAtlasVisitor__Optimizer_P1, - "default to traversing all children. ", - ""); - I_Method0(osgUtil::Optimizer::TextureAtlasBuilder &, getTextureAtlasBuilder, - Properties::NON_VIRTUAL, - __TextureAtlasBuilder_R1__getTextureAtlasBuilder, - "", - ""); - I_Method0(void, reset, - Properties::VIRTUAL, - __void__reset, - "empty visitor, make it ready for next traversal. ", - ""); - I_Method1(void, apply, IN, osg::Node &, node, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method0(void, optimize, - Properties::NON_VIRTUAL, - __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, - ____TextureVisitor__bool__bool__bool__bool__bool__float__Optimizer_P1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, node, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Node &, node, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::StateSet &, stateset, - Properties::NON_VIRTUAL, - __void__apply__osg_StateSet_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Texture &, texture, - Properties::NON_VIRTUAL, - __void__apply__osg_Texture_R1, - "", - ""); - I_PublicMemberProperty(bool, _changeAutoUnRef); - I_PublicMemberProperty(bool, _valueAutoUnRef); - I_PublicMemberProperty(bool, _changeClientImageStorage); - I_PublicMemberProperty(bool, _valueClientImageStorage); - I_PublicMemberProperty(bool, _changeAnisotropy); - I_PublicMemberProperty(float, _valueAnisotropy); -END_REFLECTOR - -STD_MAP_REFLECTOR(std::map< osg::Billboard * COMMA osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList >); - -STD_SET_REFLECTOR(std::set< osg::Group * >); - -STD_SET_REFLECTOR(std::set< osg::Node * >); - diff --git a/src/osgWrappers/osgUtil/RenderBin.cpp b/src/osgWrappers/osgUtil/RenderBin.cpp index 82c55d97a..1e026817b 100644 --- a/src/osgWrappers/osgUtil/RenderBin.cpp +++ b/src/osgWrappers/osgUtil/RenderBin.cpp @@ -10,15 +10,16 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -28,13 +29,6 @@ #undef OUT #endif -BEGIN_VALUE_REFLECTOR(osgUtil::RegisterRenderBinProxy) - 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); TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList); @@ -49,6 +43,7 @@ BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____RenderBin, "", @@ -65,13 +60,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -80,13 +75,230 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, + __RenderBin_P1__getParent, + "", + ""); + I_Method0(const osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, + __C5_RenderBin_P1__getParent, + "", + ""); + I_Method0(osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, + __C5_RenderStage_P1__getStage, + "", + ""); + I_Method0(int, getBinNum, + Properties::NON_VIRTUAL, + __int__getBinNum, + "", + ""); + I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, + __StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, + __C5_StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, + __RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, + __C5_RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, + __RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, + __C5_RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, + Properties::NON_VIRTUAL, + __RenderBin_P1__find_or_insert__int__C5_std_string_R1, + "", + ""); + I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__addStateGraph__StateGraph_P1, + "", + ""); + I_Method0(void, sort, + Properties::VIRTUAL, + __void__sort, + "", + ""); + I_Method0(void, sortImplementation, + Properties::VIRTUAL, + __void__sortImplementation, + "", + ""); + I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_VIRTUAL, + __void__setSortMode__SortMode, + "", + ""); + I_Method0(osgUtil::RenderBin::SortMode, getSortMode, + Properties::NON_VIRTUAL, + __SortMode__getSortMode, + "", + ""); + I_Method0(void, sortByState, + Properties::VIRTUAL, + __void__sortByState, + "", + ""); + I_Method0(void, sortByStateThenFrontToBack, + Properties::VIRTUAL, + __void__sortByStateThenFrontToBack, + "", + ""); + I_Method0(void, sortFrontToBack, + Properties::VIRTUAL, + __void__sortFrontToBack, + "", + ""); + I_Method0(void, sortBackToFront, + Properties::VIRTUAL, + __void__sortBackToFront, + "", + ""); + I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, + Properties::NON_VIRTUAL, + __void__setSortCallback__SortCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, + __SortCallback_P1__getSortCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, + __C5_SortCallback_P1__getSortCallback, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, + Properties::NON_VIRTUAL, + __void__setDrawCallback__DrawCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, + __unsigned_int__computeNumberOfDynamicRenderLeaves, + "Compute the number of dynamic RenderLeaves. ", + ""); + I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, + Properties::NON_VIRTUAL, + __void__copyLeavesFromStateGraphListToRenderLeafList, + "", + ""); + I_Constructor0(____RenderBin, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method0(void, reset, Properties::VIRTUAL, __void__reset, @@ -291,6 +503,560 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) __SortMode__getDefaultRenderBinSortMode_S, "", ""); + 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 + +TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList); + +TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList); + +TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList); + +BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) + I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE); + I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE_THEN_FRONT_TO_BACK); + I_EnumLabel(osgUtil::RenderBin::SORT_FRONT_TO_BACK); + I_EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____RenderBin, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, + __RenderBin_P1__getParent, + "", + ""); + I_Method0(const osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, + __C5_RenderBin_P1__getParent, + "", + ""); + I_Method0(osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, + __C5_RenderStage_P1__getStage, + "", + ""); + I_Method0(int, getBinNum, + Properties::NON_VIRTUAL, + __int__getBinNum, + "", + ""); + I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, + __StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, + __C5_StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, + __RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, + __C5_RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, + __RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, + __C5_RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, + Properties::NON_VIRTUAL, + __RenderBin_P1__find_or_insert__int__C5_std_string_R1, + "", + ""); + I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__addStateGraph__StateGraph_P1, + "", + ""); + I_Method0(void, sort, + Properties::VIRTUAL, + __void__sort, + "", + ""); + I_Method0(void, sortImplementation, + Properties::VIRTUAL, + __void__sortImplementation, + "", + ""); + I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_VIRTUAL, + __void__setSortMode__SortMode, + "", + ""); + I_Method0(osgUtil::RenderBin::SortMode, getSortMode, + Properties::NON_VIRTUAL, + __SortMode__getSortMode, + "", + ""); + I_Method0(void, sortByState, + Properties::VIRTUAL, + __void__sortByState, + "", + ""); + I_Method0(void, sortByStateThenFrontToBack, + Properties::VIRTUAL, + __void__sortByStateThenFrontToBack, + "", + ""); + I_Method0(void, sortFrontToBack, + Properties::VIRTUAL, + __void__sortFrontToBack, + "", + ""); + I_Method0(void, sortBackToFront, + Properties::VIRTUAL, + __void__sortBackToFront, + "", + ""); + I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, + Properties::NON_VIRTUAL, + __void__setSortCallback__SortCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, + __SortCallback_P1__getSortCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, + __C5_SortCallback_P1__getSortCallback, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, + Properties::NON_VIRTUAL, + __void__setDrawCallback__DrawCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, + __unsigned_int__computeNumberOfDynamicRenderLeaves, + "Compute the number of dynamic RenderLeaves. ", + ""); + I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, + Properties::NON_VIRTUAL, + __void__copyLeavesFromStateGraphListToRenderLeafList, + "", + ""); + I_Constructor0(____RenderBin, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, + ____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, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + __void__setStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + I_Method0(osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, + __RenderBin_P1__getParent, + "", + ""); + I_Method0(const osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, + __C5_RenderBin_P1__getParent, + "", + ""); + I_Method0(osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, + __C5_RenderStage_P1__getStage, + "", + ""); + I_Method0(int, getBinNum, + Properties::NON_VIRTUAL, + __int__getBinNum, + "", + ""); + I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, + __StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, + __C5_StateGraphList_R1__getStateGraphList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, + __RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, + __C5_RenderBinList_R1__getRenderBinList, + "", + ""); + I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, + __RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, + __C5_RenderLeafList_R1__getRenderLeafList, + "", + ""); + I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, + Properties::NON_VIRTUAL, + __RenderBin_P1__find_or_insert__int__C5_std_string_R1, + "", + ""); + I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__addStateGraph__StateGraph_P1, + "", + ""); + I_Method0(void, sort, + Properties::VIRTUAL, + __void__sort, + "", + ""); + I_Method0(void, sortImplementation, + Properties::VIRTUAL, + __void__sortImplementation, + "", + ""); + I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_VIRTUAL, + __void__setSortMode__SortMode, + "", + ""); + I_Method0(osgUtil::RenderBin::SortMode, getSortMode, + Properties::NON_VIRTUAL, + __SortMode__getSortMode, + "", + ""); + I_Method0(void, sortByState, + Properties::VIRTUAL, + __void__sortByState, + "", + ""); + I_Method0(void, sortByStateThenFrontToBack, + Properties::VIRTUAL, + __void__sortByStateThenFrontToBack, + "", + ""); + I_Method0(void, sortFrontToBack, + Properties::VIRTUAL, + __void__sortFrontToBack, + "", + ""); + I_Method0(void, sortBackToFront, + Properties::VIRTUAL, + __void__sortBackToFront, + "", + ""); + I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, + Properties::NON_VIRTUAL, + __void__setSortCallback__SortCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, + __SortCallback_P1__getSortCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, + __C5_SortCallback_P1__getSortCallback, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, + Properties::NON_VIRTUAL, + __void__setDrawCallback__DrawCallback_P1, + "", + ""); + I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getDrawCallback, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, + __unsigned_int__computeNumberOfDynamicRenderLeaves, + "Compute the number of dynamic RenderLeaves. ", + ""); + I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, + Properties::NON_VIRTUAL, + __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_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); @@ -324,6 +1090,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____DrawCallback, "", @@ -333,62 +1100,28 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) - I_BaseType(osg::Referenced); - I_Constructor0(____SortCallback, - "", - ""); - I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, + I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, Properties::PURE_VIRTUAL, - __void__sortImplementation__RenderBin_P1, + __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderBin >) - I_Constructor0(____ref_ptr, +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____DrawCallback, "", ""); - I_Constructor1(IN, osgUtil::RenderBin *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderBin > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgUtil::RenderBin *, get, - Properties::NON_VIRTUAL, - __T_P1__get, + I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::PURE_VIRTUAL, + __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, + I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::PURE_VIRTUAL, + __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); - I_Method0(osgUtil::RenderBin *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderBin > &, rp, - Properties::NON_VIRTUAL, - __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 > >); - -STD_VECTOR_REFLECTOR(std::vector< osgUtil::RenderLeaf * >); - -STD_VECTOR_REFLECTOR(std::vector< osgUtil::StateGraph * >); - diff --git a/src/osgWrappers/osgUtil/RenderLeaf.cpp b/src/osgWrappers/osgUtil/RenderLeaf.cpp index b8ce85990..e787bf4b9 100644 --- a/src/osgWrappers/osgUtil/RenderLeaf.cpp +++ b/src/osgWrappers/osgUtil/RenderLeaf.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -27,6 +27,31 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderLeaf) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + 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, + Properties::NON_VIRTUAL, + __void__set__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method2(void, render, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *, previous, + Properties::VIRTUAL, + __void__render__osg_RenderInfo_R1__RenderLeaf_P1, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); 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, "", @@ -60,5 +85,75 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderLeaf) I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _modelview); I_PublicMemberProperty(float, _depth); I_PublicMemberProperty(bool, _dynamic); + I_PublicMemberProperty(osgUtil::StateGraph *, _parent); + I_PublicMemberProperty(osg::Drawable *, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _projection); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _modelview); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderLeaf) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + 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, + Properties::NON_VIRTUAL, + __void__set__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method2(void, render, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *, previous, + Properties::VIRTUAL, + __void__render__osg_RenderInfo_R1__RenderLeaf_P1, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); + 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, + Properties::NON_VIRTUAL, + __void__set__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method2(void, render, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *, previous, + Properties::VIRTUAL, + __void__render__osg_RenderInfo_R1__RenderLeaf_P1, + "", + ""); + I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getDrawable, + "", + ""); + I_SimpleProperty(const osg::Drawable *, Drawable, + __C5_osg_Drawable_P1__getDrawable, + 0); + I_PublicMemberProperty(osgUtil::StateGraph *, _parent); + I_PublicMemberProperty(osg::Drawable *, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _projection); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _modelview); + I_PublicMemberProperty(float, _depth); + I_PublicMemberProperty(bool, _dynamic); + I_PublicMemberProperty(osgUtil::StateGraph *, _parent); + I_PublicMemberProperty(osg::Drawable *, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _projection); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _modelview); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/SceneView.cpp b/src/osgWrappers/osgUtil/SceneView.cpp index ff82cf4e8..42ff1e01e 100644 --- a/src/osgWrappers/osgUtil/SceneView.cpp +++ b/src/osgWrappers/osgUtil/SceneView.cpp @@ -10,29 +10,30 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include #include -#include +#include +#include +#include +#include #include -#include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -70,6 +71,8 @@ BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::FusionDistanceMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) + I_BaseType(osg::Object); + I_BaseType(osg::CullSettings); I_BaseType(osg::Object); I_BaseType(osg::CullSettings); I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, @@ -84,13 +87,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -99,13 +102,682 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) I_Method0(const char *, libraryName, Properties::VIRTUAL, __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, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, + __void__setDefaults__unsigned_int, + "Set scene view to use default global state, light, camera and render visitor. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera used to represent the camera view of this SceneView. ", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSceneData, + "Get the number of scene data subgraphs added to the SceneView's camera. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setViewport__int__int__int__int, + "Set the viewport of the scene view to specified dimensions. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the const DisplaySettings. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the color used in glClearColor(). ", + "Defaults to an off blue color. "); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "Get the color used in glClearColor. ", + ""); + I_Method1(void, setRedrawInterlacedStereoStencilMask, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getRedrawInterlacedStereoStencilMask, + "Get the redraw interlaced stereo stencil mask request flag. ", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setLocalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, + __void__setLocalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method1(void, setActiveUniforms, IN, int, activeUniforms, + Properties::NON_VIRTUAL, + __void__setActiveUniforms__int, + "Set the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(int, getActiveUniforms, + Properties::NON_VIRTUAL, + __int__getActiveUniforms, + "Get the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(void, updateUniforms, + Properties::NON_VIRTUAL, + __void__updateUniforms, + "", + ""); + I_Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode, + Properties::NON_VIRTUAL, + __void__setLightingMode__LightingMode, + "", + ""); + I_Method0(osgUtil::SceneView::LightingMode, getLightingMode, + Properties::NON_VIRTUAL, + __LightingMode__getLightingMode, + "", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setLight__osg_Light_P1, + "", + ""); + I_Method0(osg::Light *, getLight, + Properties::NON_VIRTUAL, + __osg_Light_P1__getLight, + "", + ""); + I_Method0(const osg::Light *, getLight, + Properties::NON_VIRTUAL, + __C5_osg_Light_P1__getLight, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, + __void__setView__osg_View_P1, + "", + ""); + I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, + __osg_View_P1__getView, + "", + ""); + I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, + __C5_osg_View_P1__getView, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInitVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av, + Properties::NON_VIRTUAL, + __void__setUpdateVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitor__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitorLeft__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitorRight__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov, + Properties::NON_VIRTUAL, + __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1, + "", + ""); + I_Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, + __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, + __C5_osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraph__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method1(void, setStateGraphLeft, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraphLeft__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method1(void, setStateGraphRight, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraphRight__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStage__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStageLeft__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStageRight__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFusionDistance__FusionDistanceMode__float, + "Set the FusionDistanceMode and Value. ", + "Note, is used only when working in stereo. "); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::NON_VIRTUAL, + __FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + ""); + I_Method0(float, getFusionDistanceValue, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPrioritizeTextures__bool, + "Set whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method0(bool, getPrioritizeTextures, + Properties::NON_VIRTUAL, + __bool__getPrioritizeTextures, + "Get whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback, + Properties::NON_VIRTUAL, + __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1, + "", + ""); + I_Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, + __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, + __C5_ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object, + Properties::NON_VIRTUAL, + __bool__projectWindowIntoObject__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate the object coordinates of a point in window coordinates. ", + "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, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__int__int__osg_Vec3_R1__osg_Vec3_R1, + "Calculate 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, + Properties::NON_VIRTUAL, + __bool__projectObjectIntoWindow__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate the window coordinates of a point in object coordinates. ", + "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, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, + __osg_Matrixd__computeLeftEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, + __osg_Matrixd__computeLeftEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, + __osg_Matrixd__computeRightEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, + __osg_Matrixd__computeRightEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__update, + "Do app traversal of attached scene graph using App NodeVisitor. ", + ""); + I_Method0(void, cull, + Properties::VIRTUAL, + __void__cull, + "Do cull traversal of attached scene graph using Cull NodeVisitor. ", + ""); + I_Method0(void, draw, + Properties::VIRTUAL, + __void__draw, + "Do draw traversal of draw bins generated by cull traversal. ", + ""); + I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, + __unsigned_int__getDynamicObjectCount, + "Compute the number of dynamic objects that will be held in the rendering backend. ", + ""); + I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__flushAllDeletedGLObjects, + "Flush all deleted OpenGL objects, such as texture objects, display lists etc. ", + ""); + I_Method1(void, flushDeletedGLObjects, IN, double &, availableTime, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, + ____SceneView__osg_DisplaySettings_P1, + "Construct a default scene view. ", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::SceneView &, sceneview, , IN, const osg::CopyOp &, copyop, osg::CopyOp(), + ____SceneView__C5_SceneView_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS, Properties::NON_VIRTUAL, __void__setDefaults__unsigned_int, @@ -855,30 +1527,1487 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) __void__setViewport__osg_Viewport_P1); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SceneView::ComputeStereoMatricesCallback) - I_BaseType(osg::Referenced); - I_Constructor0(____ComputeStereoMatricesCallback, - "", - ""); +TYPE_NAME_ALIAS(osgUtil::SceneView::Options, osgUtil::SceneView::LightingMode); + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::Options) + I_EnumLabel(osgUtil::SceneView::NO_SCENEVIEW_LIGHT); + I_EnumLabel(osgUtil::SceneView::HEADLIGHT); + I_EnumLabel(osgUtil::SceneView::SKY_LIGHT); + I_EnumLabel(osgUtil::SceneView::COMPILE_GLOBJECTS_AT_INIT); + I_EnumLabel(osgUtil::SceneView::STANDARD_SETTINGS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::ActiveUniforms) + I_EnumLabel(osgUtil::SceneView::FRAME_NUMBER_UNIFORM); + I_EnumLabel(osgUtil::SceneView::FRAME_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::DELTA_FRAME_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::SIMULATION_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::DELTA_SIMULATION_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::VIEW_MATRIX_UNIFORM); + I_EnumLabel(osgUtil::SceneView::VIEW_MATRIX_INVERSE_UNIFORM); + I_EnumLabel(osgUtil::SceneView::DEFAULT_UNIFORMS); + I_EnumLabel(osgUtil::SceneView::ALL_UNIFORMS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::FusionDistanceMode) + I_EnumLabel(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE); + I_EnumLabel(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) + I_BaseType(osg::Object); + I_BaseType(osg::CullSettings); + I_BaseType(osg::Object); + I_BaseType(osg::CullSettings); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, + ____SceneView__osg_DisplaySettings_P1, + "Construct a default scene view. ", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::SceneView &, sceneview, , IN, const osg::CopyOp &, copyop, osg::CopyOp(), + ____SceneView__C5_SceneView_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, + __void__setDefaults__unsigned_int, + "Set scene view to use default global state, light, camera and render visitor. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera used to represent the camera view of this SceneView. ", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSceneData, + "Get the number of scene data subgraphs added to the SceneView's camera. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setViewport__int__int__int__int, + "Set the viewport of the scene view to specified dimensions. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the const DisplaySettings. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the color used in glClearColor(). ", + "Defaults to an off blue color. "); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "Get the color used in glClearColor. ", + ""); + I_Method1(void, setRedrawInterlacedStereoStencilMask, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getRedrawInterlacedStereoStencilMask, + "Get the redraw interlaced stereo stencil mask request flag. ", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setLocalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, + __void__setLocalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method1(void, setActiveUniforms, IN, int, activeUniforms, + Properties::NON_VIRTUAL, + __void__setActiveUniforms__int, + "Set the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(int, getActiveUniforms, + Properties::NON_VIRTUAL, + __int__getActiveUniforms, + "Get the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(void, updateUniforms, + Properties::NON_VIRTUAL, + __void__updateUniforms, + "", + ""); + I_Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode, + Properties::NON_VIRTUAL, + __void__setLightingMode__LightingMode, + "", + ""); + I_Method0(osgUtil::SceneView::LightingMode, getLightingMode, + Properties::NON_VIRTUAL, + __LightingMode__getLightingMode, + "", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setLight__osg_Light_P1, + "", + ""); + I_Method0(osg::Light *, getLight, + Properties::NON_VIRTUAL, + __osg_Light_P1__getLight, + "", + ""); + I_Method0(const osg::Light *, getLight, + Properties::NON_VIRTUAL, + __C5_osg_Light_P1__getLight, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, + __void__setView__osg_View_P1, + "", + ""); + I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, + __osg_View_P1__getView, + "", + ""); + I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, + __C5_osg_View_P1__getView, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInitVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av, + Properties::NON_VIRTUAL, + __void__setUpdateVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitor__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitorLeft__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitorRight__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov, + Properties::NON_VIRTUAL, + __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1, + "", + ""); + I_Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, + __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, + __C5_osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraph__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method1(void, setStateGraphLeft, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraphLeft__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method1(void, setStateGraphRight, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraphRight__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStage__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStageLeft__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStageRight__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFusionDistance__FusionDistanceMode__float, + "Set the FusionDistanceMode and Value. ", + "Note, is used only when working in stereo. "); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::NON_VIRTUAL, + __FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + ""); + I_Method0(float, getFusionDistanceValue, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPrioritizeTextures__bool, + "Set whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method0(bool, getPrioritizeTextures, + Properties::NON_VIRTUAL, + __bool__getPrioritizeTextures, + "Get whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback, + Properties::NON_VIRTUAL, + __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1, + "", + ""); + I_Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, + __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, + __C5_ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object, + Properties::NON_VIRTUAL, + __bool__projectWindowIntoObject__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate the object coordinates of a point in window coordinates. ", + "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, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__int__int__osg_Vec3_R1__osg_Vec3_R1, + "Calculate 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, + Properties::NON_VIRTUAL, + __bool__projectObjectIntoWindow__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate the window coordinates of a point in object coordinates. ", + "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, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, - Properties::PURE_VIRTUAL, + Properties::NON_VIRTUAL, __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, - Properties::PURE_VIRTUAL, + Properties::NON_VIRTUAL, __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, - Properties::PURE_VIRTUAL, + Properties::NON_VIRTUAL, __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, - Properties::PURE_VIRTUAL, + Properties::NON_VIRTUAL, __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, "", ""); + I_Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, + __osg_Matrixd__computeLeftEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, + __osg_Matrixd__computeLeftEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, + __osg_Matrixd__computeRightEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, + __osg_Matrixd__computeRightEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__update, + "Do app traversal of attached scene graph using App NodeVisitor. ", + ""); + I_Method0(void, cull, + Properties::VIRTUAL, + __void__cull, + "Do cull traversal of attached scene graph using Cull NodeVisitor. ", + ""); + I_Method0(void, draw, + Properties::VIRTUAL, + __void__draw, + "Do draw traversal of draw bins generated by cull traversal. ", + ""); + I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, + __unsigned_int__getDynamicObjectCount, + "Compute the number of dynamic objects that will be held in the rendering backend. ", + ""); + I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__flushAllDeletedGLObjects, + "Flush all deleted OpenGL objects, such as texture objects, display lists etc. ", + ""); + I_Method1(void, flushDeletedGLObjects, IN, double &, availableTime, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, + ____SceneView__osg_DisplaySettings_P1, + "Construct a default scene view. ", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::SceneView &, sceneview, , IN, const osg::CopyOp &, copyop, osg::CopyOp(), + ____SceneView__C5_SceneView_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, + __void__setDefaults__unsigned_int, + "Set scene view to use default global state, light, camera and render visitor. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "Set the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "Get the camera used to represent the camera view of this SceneView. ", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "Get the const camera used to represent the camera view of this SceneView. ", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSceneData, + "Get the number of scene data subgraphs added to the SceneView's camera. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setViewport__int__int__int__int, + "Set the viewport of the scene view to specified dimensions. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the const DisplaySettings. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings. ", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the color used in glClearColor(). ", + "Defaults to an off blue color. "); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "Get the color used in glClearColor. ", + ""); + I_Method1(void, setRedrawInterlacedStereoStencilMask, IN, bool, flag, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getRedrawInterlacedStereoStencilMask, + "Get the redraw interlaced stereo stencil mask request flag. ", + ""); + I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, + __void__setGlobalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getGlobalStateSet, + "", + ""); + I_Method1(void, setLocalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, + __void__setLocalStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getLocalStateSet, + "", + ""); + I_Method1(void, setActiveUniforms, IN, int, activeUniforms, + Properties::NON_VIRTUAL, + __void__setActiveUniforms__int, + "Set the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(int, getActiveUniforms, + Properties::NON_VIRTUAL, + __int__getActiveUniforms, + "Get the uniforms that SceneView should set set up on each frame. ", + ""); + I_Method0(void, updateUniforms, + Properties::NON_VIRTUAL, + __void__updateUniforms, + "", + ""); + I_Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode, + Properties::NON_VIRTUAL, + __void__setLightingMode__LightingMode, + "", + ""); + I_Method0(osgUtil::SceneView::LightingMode, getLightingMode, + Properties::NON_VIRTUAL, + __LightingMode__getLightingMode, + "", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setLight__osg_Light_P1, + "", + ""); + I_Method0(osg::Light *, getLight, + Properties::NON_VIRTUAL, + __osg_Light_P1__getLight, + "", + ""); + I_Method0(const osg::Light *, getLight, + Properties::NON_VIRTUAL, + __C5_osg_Light_P1__getLight, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, + __osg_State_P1__getState, + "", + ""); + I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, + __C5_osg_State_P1__getState, + "", + ""); + I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, + __void__setView__osg_View_P1, + "", + ""); + I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, + __osg_View_P1__getView, + "", + ""); + I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, + __C5_osg_View_P1__getView, + "", + ""); + I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__setRenderInfo__osg_RenderInfo_R1, + "", + ""); + I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, + __C5_osg_RenderInfo_R1__getRenderInfo, + "", + ""); + I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getProjectionMatrix, + "Get the projection matrix. ", + ""); + I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osg_Matrixd_R1__getViewMatrix, + "Get the view matrix. ", + ""); + I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setInitVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getInitVisitor, + "", + ""); + I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av, + Properties::NON_VIRTUAL, + __void__setUpdateVisitor__osg_NodeVisitor_P1, + "", + ""); + I_Method0(osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osg_NodeVisitor_P1__getUpdateVisitor, + "", + ""); + I_Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitor__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitor, + "", + ""); + I_Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitorLeft__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitorLeft, + "", + ""); + I_Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + __void__setCullVisitorRight__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, + __osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method0(const osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_CullVisitor_P1__getCullVisitorRight, + "", + ""); + I_Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov, + Properties::NON_VIRTUAL, + __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1, + "", + ""); + I_Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, + __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, + __C5_osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + "", + ""); + I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraph__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraph, + "", + ""); + I_Method1(void, setStateGraphLeft, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraphLeft__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraphLeft, + "", + ""); + I_Method1(void, setStateGraphRight, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, + __void__setStateGraphRight__osgUtil_StateGraph_P1, + "", + ""); + I_Method0(osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, + __osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method0(const osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_StateGraph_P1__getStateGraphRight, + "", + ""); + I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStage__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStage, + "", + ""); + I_Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStageLeft__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStageLeft, + "", + ""); + I_Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__setRenderStageRight__osgUtil_RenderStage_P1, + "", + ""); + I_Method0(osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, + __osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method0(const osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, + __C5_osgUtil_RenderStage_P1__getRenderStageRight, + "", + ""); + I_Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setFusionDistance__FusionDistanceMode__float, + "Set the FusionDistanceMode and Value. ", + "Note, is used only when working in stereo. "); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::NON_VIRTUAL, + __FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + ""); + I_Method0(float, getFusionDistanceValue, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__setPrioritizeTextures__bool, + "Set whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method0(bool, getPrioritizeTextures, + Properties::NON_VIRTUAL, + __bool__getPrioritizeTextures, + "Get whether the draw method should call renderer->prioritizeTexture. ", + ""); + I_Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback, + Properties::NON_VIRTUAL, + __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1, + "", + ""); + I_Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, + __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, + __C5_ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + "", + ""); + I_Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object, + Properties::NON_VIRTUAL, + __bool__projectWindowIntoObject__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate the object coordinates of a point in window coordinates. ", + "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, + Properties::NON_VIRTUAL, + __bool__projectWindowXYIntoObject__int__int__osg_Vec3_R1__osg_Vec3_R1, + "Calculate 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, + Properties::NON_VIRTUAL, + __bool__projectObjectIntoWindow__C5_osg_Vec3_R1__osg_Vec3_R1, + "Calculate the window coordinates of a point in object coordinates. ", + "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, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "Set the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, + Properties::NON_VIRTUAL, + __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, + __osg_Matrixd__computeLeftEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, + __osg_Matrixd__computeLeftEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, + __osg_Matrixd__computeRightEyeProjectionImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, + __osg_Matrixd__computeRightEyeViewImplementation__C5_osg_Matrixd_R1, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__update, + "Do app traversal of attached scene graph using App NodeVisitor. ", + ""); + I_Method0(void, cull, + Properties::VIRTUAL, + __void__cull, + "Do cull traversal of attached scene graph using Cull NodeVisitor. ", + ""); + I_Method0(void, draw, + Properties::VIRTUAL, + __void__draw, + "Do draw traversal of draw bins generated by cull traversal. ", + ""); + I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, + __unsigned_int__getDynamicObjectCount, + "Compute the number of dynamic objects that will be held in the rendering backend. ", + ""); + I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__flushAllDeletedGLObjects, + "Flush all deleted OpenGL objects, such as texture objects, display lists etc. ", + ""); + I_Method1(void, flushDeletedGLObjects, IN, double &, availableTime, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_SimpleProperty(int, ActiveUniforms, + __int__getActiveUniforms, + __void__setActiveUniforms__int); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_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(unsigned int, DynamicObjectCount, + __unsigned_int__getDynamicObjectCount, + 0); + 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 diff --git a/src/osgWrappers/osgUtil/Simplifier.cpp b/src/osgWrappers/osgUtil/Simplifier.cpp index 7fe58a1a1..322666096 100644 --- a/src/osgWrappers/osgUtil/Simplifier.cpp +++ b/src/osgWrappers/osgUtil/Simplifier.cpp @@ -10,8 +10,9 @@ #include #include +#include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +27,314 @@ TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::Simplifier::IndexList); BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + 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, + Properties::NON_VIRTUAL, + __void__setSampleRatio__float, + "", + ""); + I_Method0(float, getSampleRatio, + Properties::NON_VIRTUAL, + __float__getSampleRatio, + "", + ""); + I_Method1(void, setMaximumError, IN, float, error, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaximumError, + "", + ""); + I_Method1(void, setMaximumLength, IN, float, length, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaximumLength, + "", + ""); + I_Method1(void, setDoTriStrip, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setDoTriStrip__bool, + "", + ""); + I_Method0(bool, getDoTriStrip, + Properties::NON_VIRTUAL, + __bool__getDoTriStrip, + "", + ""); + I_Method1(void, setSmoothing, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setSmoothing__bool, + "", + ""); + I_Method0(bool, getSmoothing, + Properties::NON_VIRTUAL, + __bool__getSmoothing, + "", + ""); + I_Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb, + Properties::NON_VIRTUAL, + __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1, + "", + ""); + I_Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, + __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, + __C5_ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::NON_VIRTUAL, + __bool__continueSimplification__float__unsigned_int__unsigned_int, + "", + ""); + I_Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, + __bool__continueSimplificationImplementation__float__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, simplify, IN, osg::Geometry &, geometry, + Properties::NON_VIRTUAL, + __void__simplify__osg_Geometry_R1, + "simply the geometry. ", + ""); + I_Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints, + Properties::NON_VIRTUAL, + __void__simplify__osg_Geometry_R1__C5_IndexList_R1, + "simply the geometry, whilst protecting key points from being modified. ", + ""); + 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, + Properties::NON_VIRTUAL, + __void__setSampleRatio__float, + "", + ""); + I_Method0(float, getSampleRatio, + Properties::NON_VIRTUAL, + __float__getSampleRatio, + "", + ""); + I_Method1(void, setMaximumError, IN, float, error, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaximumError, + "", + ""); + I_Method1(void, setMaximumLength, IN, float, length, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaximumLength, + "", + ""); + I_Method1(void, setDoTriStrip, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setDoTriStrip__bool, + "", + ""); + I_Method0(bool, getDoTriStrip, + Properties::NON_VIRTUAL, + __bool__getDoTriStrip, + "", + ""); + I_Method1(void, setSmoothing, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setSmoothing__bool, + "", + ""); + I_Method0(bool, getSmoothing, + Properties::NON_VIRTUAL, + __bool__getSmoothing, + "", + ""); + I_Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb, + Properties::NON_VIRTUAL, + __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1, + "", + ""); + I_Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, + __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, + __C5_ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::NON_VIRTUAL, + __bool__continueSimplification__float__unsigned_int__unsigned_int, + "", + ""); + I_Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, + __bool__continueSimplificationImplementation__float__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, simplify, IN, osg::Geometry &, geometry, + Properties::NON_VIRTUAL, + __void__simplify__osg_Geometry_R1, + "simply the geometry. ", + ""); + I_Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints, + Properties::NON_VIRTUAL, + __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 + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::Simplifier::IndexList); + +BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + 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, + Properties::NON_VIRTUAL, + __void__setSampleRatio__float, + "", + ""); + I_Method0(float, getSampleRatio, + Properties::NON_VIRTUAL, + __float__getSampleRatio, + "", + ""); + I_Method1(void, setMaximumError, IN, float, error, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaximumError, + "", + ""); + I_Method1(void, setMaximumLength, IN, float, length, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __float__getMaximumLength, + "", + ""); + I_Method1(void, setDoTriStrip, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setDoTriStrip__bool, + "", + ""); + I_Method0(bool, getDoTriStrip, + Properties::NON_VIRTUAL, + __bool__getDoTriStrip, + "", + ""); + I_Method1(void, setSmoothing, IN, bool, on, + Properties::NON_VIRTUAL, + __void__setSmoothing__bool, + "", + ""); + I_Method0(bool, getSmoothing, + Properties::NON_VIRTUAL, + __bool__getSmoothing, + "", + ""); + I_Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb, + Properties::NON_VIRTUAL, + __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1, + "", + ""); + I_Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, + __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, + __C5_ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + "", + ""); + I_Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::NON_VIRTUAL, + __bool__continueSimplification__float__unsigned_int__unsigned_int, + "", + ""); + I_Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, + __bool__continueSimplificationImplementation__float__unsigned_int__unsigned_int, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, simplify, IN, osg::Geometry &, geometry, + Properties::NON_VIRTUAL, + __void__simplify__osg_Geometry_R1, + "simply the geometry. ", + ""); + I_Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints, + Properties::NON_VIRTUAL, + __void__simplify__osg_Geometry_R1__C5_IndexList_R1, + "simply the geometry, whilst protecting key points from being modified. ", + ""); I_ConstructorWithDefaults3(IN, float, sampleRatio, 1.0f, IN, float, maximumError, FLT_MAX, IN, float, maximumLength, 0.0, ____Simplifier__float__float__float, "", @@ -141,6 +450,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) + I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); I_Constructor0(____ContinueSimplificationCallback, "", @@ -150,5 +460,28 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) __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. ", ""); + I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____ContinueSimplificationCallback, + "", + ""); + I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, + __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. ", + ""); + I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, + __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/TriStripVisitor.cpp b/src/osgWrappers/osgUtil/TriStripVisitor.cpp index 3a77a718e..ce18e816b 100644 --- a/src/osgWrappers/osgUtil/TriStripVisitor.cpp +++ b/src/osgWrappers/osgUtil/TriStripVisitor.cpp @@ -10,8 +10,8 @@ #include #include +#include #include -#include #include #include @@ -25,6 +25,201 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TriStripVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, + ____TriStripVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, stripify, IN, osg::Geometry &, drawable, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__stripify, + "Stripify (make into strips of tria or quads) the accumulated list of Geometry drawables. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "Accumulate the Geometry drawables to make into strips. ", + ""); + I_Method1(void, setCacheSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setCacheSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCacheSize, + Properties::NON_VIRTUAL, + __unsigned_int__getCacheSize, + "", + ""); + I_Method0(const unsigned int, getCacheSize, + Properties::NON_VIRTUAL, + __C5_unsigned_int__getCacheSize, + "", + ""); + I_Method1(void, setMinStripSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMinStripSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMinStripSize, + "", + ""); + I_Method0(const unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, + __C5_unsigned_int__getMinStripSize, + "", + ""); + I_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateFourPointPrimitivesQuads__bool, + "", + ""); + I_Method0(bool, getGenerateFourPointPrimitivesQuads, + Properties::NON_VIRTUAL, + __bool__getGenerateFourPointPrimitivesQuads, + "", + ""); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, + ____TriStripVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, stripify, IN, osg::Geometry &, drawable, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__stripify, + "Stripify (make into strips of tria or quads) the accumulated list of Geometry drawables. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "Accumulate the Geometry drawables to make into strips. ", + ""); + I_Method1(void, setCacheSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setCacheSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCacheSize, + Properties::NON_VIRTUAL, + __unsigned_int__getCacheSize, + "", + ""); + I_Method0(const unsigned int, getCacheSize, + Properties::NON_VIRTUAL, + __C5_unsigned_int__getCacheSize, + "", + ""); + I_Method1(void, setMinStripSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMinStripSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMinStripSize, + "", + ""); + I_Method0(const unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, + __C5_unsigned_int__getMinStripSize, + "", + ""); + I_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateFourPointPrimitivesQuads__bool, + "", + ""); + I_Method0(bool, getGenerateFourPointPrimitivesQuads, + Properties::NON_VIRTUAL, + __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 + +BEGIN_OBJECT_REFLECTOR(osgUtil::TriStripVisitor) + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, + ____TriStripVisitor__Optimizer_P1, + "default to traversing all children. ", + ""); + I_Method1(void, stripify, IN, osg::Geometry &, drawable, + Properties::NON_VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __void__stripify, + "Stripify (make into strips of tria or quads) the accumulated list of Geometry drawables. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "Accumulate the Geometry drawables to make into strips. ", + ""); + I_Method1(void, setCacheSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setCacheSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getCacheSize, + Properties::NON_VIRTUAL, + __unsigned_int__getCacheSize, + "", + ""); + I_Method0(const unsigned int, getCacheSize, + Properties::NON_VIRTUAL, + __C5_unsigned_int__getCacheSize, + "", + ""); + I_Method1(void, setMinStripSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMinStripSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMinStripSize, + "", + ""); + I_Method0(const unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, + __C5_unsigned_int__getMinStripSize, + "", + ""); + I_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateFourPointPrimitivesQuads__bool, + "", + ""); + I_Method0(bool, getGenerateFourPointPrimitivesQuads, + Properties::NON_VIRTUAL, + __bool__getGenerateFourPointPrimitivesQuads, + "", + ""); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, ____TriStripVisitor__Optimizer_P1, diff --git a/src/osgWrappers/osgViewer/CompositeViewer.cpp b/src/osgWrappers/osgViewer/CompositeViewer.cpp index e75c7896d..3ad8145a0 100644 --- a/src/osgWrappers/osgViewer/CompositeViewer.cpp +++ b/src/osgWrappers/osgViewer/CompositeViewer.cpp @@ -10,11 +10,12 @@ #include #include +#include +#include #include #include -#include -#include #include +#include #include #include @@ -45,6 +46,225 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____CompositeViewer, + "", + ""); + I_Method1(void, addView, IN, osgViewer::View *, view, + Properties::NON_VIRTUAL, + __void__addView__osgViewer_View_P1, + "", + ""); + I_Method1(osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getView__unsigned, + "", + ""); + I_Method1(const osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getView__unsigned, + "", + ""); + I_Method0(unsigned int, getNumViews, + Properties::NON_VIRTUAL, + __unsigned_int__getNumViews, + "", + ""); + I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::NON_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::CompositeViewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::CompositeViewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::CompositeViewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::CompositeViewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "", + "true if the viewer respond to the QUIT_APPLICATION-event "); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCameraWithFocus__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getViewWithFocus, + "", + ""); + I_Method0(const osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getViewWithFocus, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::CompositeViewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::CompositeViewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::CompositeViewer::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::NON_VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer, as per viewers ThreadingModel. ", + ""); + I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, + __void__setUpRenderingSupport, + "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", + ""); I_Constructor0(____CompositeViewer, "", ""); @@ -308,9 +528,504 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer) 0); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::GraphicsContext * >); +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::CompositeViewer::Contexts); -STD_VECTOR_REFLECTOR(std::vector< osgViewer::GraphicsWindow * >); +TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::CompositeViewer::Windows); -STD_VECTOR_REFLECTOR(std::vector< osgViewer::Scene * >); +TYPE_NAME_ALIAS(std::vector< osgViewer::Scene * >, osgViewer::CompositeViewer::Scenes); + +BEGIN_ENUM_REFLECTOR(osgViewer::CompositeViewer::ThreadingModel) + I_EnumLabel(osgViewer::CompositeViewer::SingleThreaded); + I_EnumLabel(osgViewer::CompositeViewer::ThreadPerContext); + I_EnumLabel(osgViewer::CompositeViewer::ThreadPerCamera); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::CompositeViewer::BarrierPosition) + I_EnumLabel(osgViewer::CompositeViewer::BeforeSwapBuffers); + I_EnumLabel(osgViewer::CompositeViewer::AfterSwapBuffers); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____CompositeViewer, + "", + ""); + I_Method1(void, addView, IN, osgViewer::View *, view, + Properties::NON_VIRTUAL, + __void__addView__osgViewer_View_P1, + "", + ""); + I_Method1(osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getView__unsigned, + "", + ""); + I_Method1(const osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getView__unsigned, + "", + ""); + I_Method0(unsigned int, getNumViews, + Properties::NON_VIRTUAL, + __unsigned_int__getNumViews, + "", + ""); + I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::NON_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::CompositeViewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::CompositeViewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::CompositeViewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::CompositeViewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "", + "true if the viewer respond to the QUIT_APPLICATION-event "); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCameraWithFocus__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getViewWithFocus, + "", + ""); + I_Method0(const osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getViewWithFocus, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::CompositeViewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::CompositeViewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::CompositeViewer::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::NON_VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer, as per viewers ThreadingModel. ", + ""); + I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, + __void__setUpRenderingSupport, + "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", + ""); + I_Constructor0(____CompositeViewer, + "", + ""); + I_Method1(void, addView, IN, osgViewer::View *, view, + Properties::NON_VIRTUAL, + __void__addView__osgViewer_View_P1, + "", + ""); + I_Method1(osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getView__unsigned, + "", + ""); + I_Method1(const osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getView__unsigned, + "", + ""); + I_Method0(unsigned int, getNumViews, + Properties::NON_VIRTUAL, + __unsigned_int__getNumViews, + "", + ""); + I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::NON_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::CompositeViewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::CompositeViewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::CompositeViewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::CompositeViewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "", + "true if the viewer respond to the QUIT_APPLICATION-event "); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCameraWithFocus__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getViewWithFocus, + "", + ""); + I_Method0(const osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getViewWithFocus, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::CompositeViewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::CompositeViewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::CompositeViewer::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::NON_VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer, as per viewers ThreadingModel. ", + ""); + I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, + __void__setUpRenderingSupport, + "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", + ""); + I_SimpleProperty(osg::Camera *, CameraWithFocus, + __osg_Camera_P1__getCameraWithFocus, + __void__setCameraWithFocus__osg_Camera_P1); + I_SimpleProperty(bool, Done, + 0, + __void__setDone__bool); + I_SimpleProperty(osgViewer::CompositeViewer::BarrierPosition, EndBarrierPosition, + __BarrierPosition__getEndBarrierPosition, + __void__setEndBarrierPosition__BarrierPosition); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + 0); + I_SimpleProperty(int, KeyEventSetsDone, + __int__getKeyEventSetsDone, + __void__setKeyEventSetsDone__int); + I_SimpleProperty(bool, QuitEventSetsDone, + __bool__getQuitEventSetsDone, + __void__setQuitEventSetsDone__bool); + I_SimpleProperty(osg::Operation *, RealizeOperation, + __osg_Operation_P1__getRealizeOperation, + __void__setRealizeOperation__osg_Operation_P1); + I_SimpleProperty(double, ReferenceTime, + 0, + __void__setReferenceTime__double); + I_SimpleProperty(osg::Timer_t, StartTick, + __osg_Timer_t__getStartTick, + __void__setStartTick__osg_Timer_t); + I_SimpleProperty(osgViewer::CompositeViewer::ThreadingModel, ThreadingModel, + __ThreadingModel__getThreadingModel, + __void__setThreadingModel__ThreadingModel); + I_ArrayProperty(osgViewer::View *, View, + __osgViewer_View_P1__getView__unsigned, + 0, + __unsigned_int__getNumViews, + __void__addView__osgViewer_View_P1, + 0, + 0); + I_SimpleProperty(osgViewer::View *, ViewWithFocus, + __osgViewer_View_P1__getViewWithFocus, + 0); +END_REFLECTOR diff --git a/src/osgWrappers/osgViewer/GraphicsWindow.cpp b/src/osgWrappers/osgViewer/GraphicsWindow.cpp index ccdbaf5a1..34363bbd7 100644 --- a/src/osgWrappers/osgViewer/GraphicsWindow.cpp +++ b/src/osgWrappers/osgViewer/GraphicsWindow.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include @@ -22,7 +22,9 @@ #undef OUT #endif -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) +BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) + I_BaseType(osg::GraphicsContext); + I_BaseType(osgGA::GUIActionAdapter); I_BaseType(osg::GraphicsContext); I_BaseType(osgGA::GUIActionAdapter); I_Constructor0(____GraphicsWindow, @@ -116,18 +118,340 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) I_Method0(void, requestRedraw, Properties::VIRTUAL, __void__requestRedraw, - "requestRedraw() requests a single redraw. ", + "", ""); I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true, Properties::VIRTUAL, __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, x, Properties::VIRTUAL, __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_Constructor0(____GraphicsWindow, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(void, checkEvents, + Properties::VIRTUAL, + __void__checkEvents, + "", + ""); + I_Method1(void, setWindowDecoration, IN, bool, x, + Properties::VIRTUAL, + __void__setWindowDecoration__bool, + "Set Window decoration. ", + ""); + I_Method0(void, grabFocus, + Properties::VIRTUAL, + __void__grabFocus, + "Get focus. ", + ""); + I_Method0(void, grabFocusIfPointerInWindow, + Properties::VIRTUAL, + __void__grabFocusIfPointerInWindow, + "Get focus on if the pointer is in this window. ", + ""); + I_Method1(void, useCursor, IN, bool, x, + Properties::VIRTUAL, + __void__useCursor__bool, + "Switch on/off the cursor. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, x, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__GraphicsContext_P1, + "Make this graphics context current with specified read context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers implementation. ", + "Pure virtual - must be implemented by Concrate implementations of GraphicsContext. "); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(bool, WindowDecoration, + 0, + __void__setWindowDecoration__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) + I_BaseType(osg::GraphicsContext); + I_BaseType(osgGA::GUIActionAdapter); + I_BaseType(osg::GraphicsContext); + I_BaseType(osgGA::GUIActionAdapter); + I_Constructor0(____GraphicsWindow, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(void, checkEvents, + Properties::VIRTUAL, + __void__checkEvents, + "", + ""); + I_Method1(void, setWindowDecoration, IN, bool, x, + Properties::VIRTUAL, + __void__setWindowDecoration__bool, + "Set Window decoration. ", + ""); + I_Method0(void, grabFocus, + Properties::VIRTUAL, + __void__grabFocus, + "Get focus. ", + ""); + I_Method0(void, grabFocusIfPointerInWindow, + Properties::VIRTUAL, + __void__grabFocusIfPointerInWindow, + "Get focus on if the pointer is in this window. ", + ""); + I_Method1(void, useCursor, IN, bool, x, + Properties::VIRTUAL, + __void__useCursor__bool, + "Switch on/off the cursor. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, x, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__GraphicsContext_P1, + "Make this graphics context current with specified read context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers implementation. ", + "Pure virtual - must be implemented by Concrate implementations of GraphicsContext. "); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); + I_Constructor0(____GraphicsWindow, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(void, checkEvents, + Properties::VIRTUAL, + __void__checkEvents, + "", + ""); + I_Method1(void, setWindowDecoration, IN, bool, x, + Properties::VIRTUAL, + __void__setWindowDecoration__bool, + "Set Window decoration. ", + ""); + I_Method0(void, grabFocus, + Properties::VIRTUAL, + __void__grabFocus, + "Get focus. ", + ""); + I_Method0(void, grabFocusIfPointerInWindow, + Properties::VIRTUAL, + __void__grabFocusIfPointerInWindow, + "Get focus on if the pointer is in this window. ", + ""); + I_Method1(void, useCursor, IN, bool, x, + Properties::VIRTUAL, + __void__useCursor__bool, + "Switch on/off the cursor. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, x, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__GraphicsContext_P1, + "Make this graphics context current with specified read context implementation. ", + "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, x, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers implementation. ", + "Pure virtual - must be implemented by Concrate implementations of GraphicsContext. "); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); I_SimpleProperty(osgGA::EventQueue *, EventQueue, __osgGA_EventQueue_P1__getEventQueue, __void__setEventQueue__osgGA_EventQueue_P1); diff --git a/src/osgWrappers/osgViewer/HelpHandler.cpp b/src/osgWrappers/osgViewer/HelpHandler.cpp index 3f8064ccf..39fb824db 100644 --- a/src/osgWrappers/osgViewer/HelpHandler.cpp +++ b/src/osgWrappers/osgViewer/HelpHandler.cpp @@ -24,6 +24,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) + I_BaseType(osgGA::GUIEventHandler); I_BaseType(osgGA::GUIEventHandler); I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, Properties::NON_EXPLICIT, @@ -56,9 +57,140 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) "", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __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, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, + Properties::NON_EXPLICIT, + ____HelpHandler__osg_ApplicationUsage_P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenHelp__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenHelp, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenHelp, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, + __osg_ApplicationUsage_P1__getApplicationUsage, + __void__setApplicationUsage__osg_ApplicationUsage_P1); + I_SimpleProperty(int, KeyEventTogglesOnScreenHelp, + __int__getKeyEventTogglesOnScreenHelp, + __void__setKeyEventTogglesOnScreenHelp__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, + Properties::NON_EXPLICIT, + ____HelpHandler__osg_ApplicationUsage_P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenHelp__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenHelp, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenHelp, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, + Properties::NON_EXPLICIT, + ____HelpHandler__osg_ApplicationUsage_P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenHelp__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenHelp, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenHelp, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgViewer/Scene.cpp b/src/osgWrappers/osgViewer/Scene.cpp index c53b07017..b29ef3c37 100644 --- a/src/osgWrappers/osgViewer/Scene.cpp +++ b/src/osgWrappers/osgViewer/Scene.cpp @@ -10,9 +10,9 @@ #include #include +#include #include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,210 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::Scene) I_VirtualBaseType(osg::Referenced); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____Scene, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, frameStamp, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(void, frameAdvance, + Properties::VIRTUAL, + __void__frameAdvance, + "", + ""); + I_Method0(void, frameUpdateTraversal, + Properties::VIRTUAL, + __void__frameUpdateTraversal, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_Constructor0(____Scene, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, frameStamp, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(void, frameAdvance, + Properties::VIRTUAL, + __void__frameAdvance, + "", + ""); + I_Method0(void, frameUpdateTraversal, + Properties::VIRTUAL, + __void__frameUpdateTraversal, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, + __osgDB_DatabasePager_P1__getDatabasePager, + __void__setDatabasePager__osgDB_DatabasePager_P1); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + __void__setFrameStamp__osg_FrameStamp_P1); + I_SimpleProperty(osg::Node *, SceneData, + __osg_Node_P1__getSceneData, + __void__setSceneData__osg_Node_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::Scene) + I_VirtualBaseType(osg::Referenced); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____Scene, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, frameStamp, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(void, frameAdvance, + Properties::VIRTUAL, + __void__frameAdvance, + "", + ""); + I_Method0(void, frameUpdateTraversal, + Properties::VIRTUAL, + __void__frameUpdateTraversal, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); I_Constructor0(____Scene, "", ""); diff --git a/src/osgWrappers/osgViewer/SimpleViewer.cpp b/src/osgWrappers/osgViewer/SimpleViewer.cpp index 3fd5cc7bb..44866b940 100644 --- a/src/osgWrappers/osgViewer/SimpleViewer.cpp +++ b/src/osgWrappers/osgViewer/SimpleViewer.cpp @@ -10,12 +10,13 @@ #include #include +#include #include -#include -#include +#include #include #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -28,8 +29,403 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::SimpleViewer::EventHandlers); -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::SimpleViewer) +BEGIN_OBJECT_REFLECTOR(osgViewer::SimpleViewer) I_VirtualBaseType(osgViewer::GraphicsWindow); + I_VirtualBaseType(osgViewer::GraphicsWindow); + I_Constructor0(____SimpleViewer, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "", + ""); + I_Method0(osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "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_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversal, + Properties::VIRTUAL, + __void__renderingTraversal, + "", + ""); + I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __C5_osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_Constructor0(____SimpleViewer, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "", + ""); + I_Method0(osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "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_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversal, + Properties::VIRTUAL, + __void__renderingTraversal, + "", + ""); + I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __C5_osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1); + I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, + __osgDB_DatabasePager_P1__getDatabasePager, + __void__setDatabasePager__osgDB_DatabasePager_P1); + I_SimpleProperty(osgViewer::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 + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::SimpleViewer::EventHandlers); + +BEGIN_OBJECT_REFLECTOR(osgViewer::SimpleViewer) + I_VirtualBaseType(osgViewer::GraphicsWindow); + I_VirtualBaseType(osgViewer::GraphicsWindow); + I_Constructor0(____SimpleViewer, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "", + ""); + I_Method0(osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "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_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversal, + Properties::VIRTUAL, + __void__renderingTraversal, + "", + ""); + I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __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, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, + __C5_osgUtil_SceneView_P1__getSceneView, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); I_Constructor0(____SimpleViewer, "", ""); diff --git a/src/osgWrappers/osgViewer/StatsHandler.cpp b/src/osgWrappers/osgViewer/StatsHandler.cpp index 4c27a51ac..3fca37623 100644 --- a/src/osgWrappers/osgViewer/StatsHandler.cpp +++ b/src/osgWrappers/osgViewer/StatsHandler.cpp @@ -32,6 +32,7 @@ BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) + I_BaseType(osgGA::GUIEventHandler); I_BaseType(osgGA::GUIEventHandler); I_Constructor0(____StatsHandler, "", @@ -57,9 +58,145 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) "", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "deprecated, Handle events, return true if handled, false otherwise. ", + "", + ""); + I_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, + __double__getBlockMultiplier, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Constructor0(____StatsHandler, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenStats__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenStats, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenStats, + "", + ""); + I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventPrintsOutStats__int, + "", + ""); + I_Method0(int, getKeyEventPrintsOutStats, + Properties::NON_VIRTUAL, + __int__getKeyEventPrintsOutStats, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, + __double__getBlockMultiplier, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(double, BlockMultiplier, + __double__getBlockMultiplier, + 0); + I_SimpleProperty(int, KeyEventPrintsOutStats, + __int__getKeyEventPrintsOutStats, + __void__setKeyEventPrintsOutStats__int); + I_SimpleProperty(int, KeyEventTogglesOnScreenStats, + __int__getKeyEventTogglesOnScreenStats, + __void__setKeyEventTogglesOnScreenStats__int); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) + I_EnumLabel(osgViewer::StatsHandler::NO_STATS); + I_EnumLabel(osgViewer::StatsHandler::FRAME_RATE); + I_EnumLabel(osgViewer::StatsHandler::VIEWER_STATS); + I_EnumLabel(osgViewer::StatsHandler::SCENE_STATS); + I_EnumLabel(osgViewer::StatsHandler::LAST); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____StatsHandler, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenStats__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenStats, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenStats, + "", + ""); + I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventPrintsOutStats__int, + "", + ""); + I_Method0(int, getKeyEventPrintsOutStats, + Properties::NON_VIRTUAL, + __int__getKeyEventPrintsOutStats, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, + __double__getBlockMultiplier, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Constructor0(____StatsHandler, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenStats__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenStats, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenStats, + "", + ""); + I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventPrintsOutStats__int, + "", + ""); + I_Method0(int, getKeyEventPrintsOutStats, + Properties::NON_VIRTUAL, + __int__getKeyEventPrintsOutStats, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", ""); I_Method0(double, getBlockMultiplier, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgViewer/View.cpp b/src/osgWrappers/osgViewer/View.cpp index 248a45978..b0390299b 100644 --- a/src/osgWrappers/osgViewer/View.cpp +++ b/src/osgWrappers/osgViewer/View.cpp @@ -10,14 +10,15 @@ #include #include +#include +#include #include -#include -#include #include #include #include #include -#include +#include +#include #include #include @@ -30,6 +31,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgViewer::EndOfDynamicDrawBlock) + I_BaseType(osg::State::DynamicObjectRenderingCompletedCallback); I_BaseType(osg::State::DynamicObjectRenderingCompletedCallback); I_Constructor1(IN, unsigned, int, Properties::NON_EXPLICIT, @@ -37,7 +39,105 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::EndOfDynamicDrawBlock) "", ""); I_Method1(void, completed, IN, osg::State *, state, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); + I_Method0(void, block, + Properties::NON_VIRTUAL, + __void__block, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(void, release, + Properties::NON_VIRTUAL, + __void__release, + "", + ""); + I_Method1(void, setNumOfBlocks, IN, unsigned int, blockCount, + Properties::NON_VIRTUAL, + __void__setNumOfBlocks__unsigned_int, + "", + ""); + I_Constructor1(IN, unsigned, int, + Properties::NON_EXPLICIT, + ____EndOfDynamicDrawBlock__unsigned, + "", + ""); + I_Method1(void, completed, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); + I_Method0(void, block, + Properties::NON_VIRTUAL, + __void__block, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(void, release, + Properties::NON_VIRTUAL, + __void__release, + "", + ""); + I_Method1(void, setNumOfBlocks, IN, unsigned int, blockCount, + Properties::NON_VIRTUAL, + __void__setNumOfBlocks__unsigned_int, + "", + ""); + I_SimpleProperty(unsigned int, NumOfBlocks, + 0, + __void__setNumOfBlocks__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::EndOfDynamicDrawBlock) + I_BaseType(osg::State::DynamicObjectRenderingCompletedCallback); + I_BaseType(osg::State::DynamicObjectRenderingCompletedCallback); + I_Constructor1(IN, unsigned, int, + Properties::NON_EXPLICIT, + ____EndOfDynamicDrawBlock__unsigned, + "", + ""); + I_Method1(void, completed, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); + I_Method0(void, block, + Properties::NON_VIRTUAL, + __void__block, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(void, release, + Properties::NON_VIRTUAL, + __void__release, + "", + ""); + I_Method1(void, setNumOfBlocks, IN, unsigned int, blockCount, + Properties::NON_VIRTUAL, + __void__setNumOfBlocks__unsigned_int, + "", + ""); + I_Constructor1(IN, unsigned, int, + Properties::NON_EXPLICIT, + ____EndOfDynamicDrawBlock__unsigned, + "", + ""); + I_Method1(void, completed, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__completed__osg_State_P1, "", ""); @@ -69,6 +169,8 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::View::EventHandlers); BEGIN_OBJECT_REFLECTOR(osgViewer::View) + I_BaseType(osg::View); + I_BaseType(osgGA::GUIActionAdapter); I_BaseType(osg::View); I_BaseType(osgGA::GUIActionAdapter); I_Constructor0(____View, @@ -192,18 +294,477 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::View) I_Method0(void, requestRedraw, Properties::VIRTUAL, __void__requestRedraw, - "requestRedraw() requests a single redraw. ", + "", ""); I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, Properties::VIRTUAL, __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, Properties::VIRTUAL, __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_Method0(void, assignSceneDataToCameras, + Properties::NON_VIRTUAL, + __void__assignSceneDataToCameras, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_Constructor0(____View, + "", + ""); + I_Method0(osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, + __Scene_P1__getScene, + "", + ""); + I_Method0(const osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, + __C5_Scene_P1__getScene, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "", + ""); + I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(void, setUpViewAcrossAllScreens, + Properties::NON_VIRTUAL, + __void__setUpViewAcrossAllScreens, + "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", + ""); + I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, + Properties::NON_VIRTUAL, + __void__setUpViewOnSingleScreen__unsigned_int, + "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", + ""); + I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, + Properties::NON_VIRTUAL, + __bool__containsCamera__C5_osg_Camera_P1, + "Return true if this view contains a specified camera. ", + ""); + I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, + "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", + "Also passes back the local window coords for the graphics context associated with the camera passed back. "); + I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, + "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", + "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); + I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, + "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", + ""); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); + I_Method0(void, assignSceneDataToCameras, + Properties::NON_VIRTUAL, + __void__assignSceneDataToCameras, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + __void__setDisplaySettings__osg_DisplaySettings_P1); + I_SimpleProperty(osgViewer::View::EventHandlers &, EventHandlers, + __EventHandlers_R1__getEventHandlers, + 0); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(osgViewer::Scene *, Scene, + __Scene_P1__getScene, + 0); + I_SimpleProperty(osg::Node *, SceneData, + __osg_Node_P1__getSceneData, + __void__setSceneData__osg_Node_P1); + I_SimpleProperty(unsigned int, UpViewOnSingleScreen, + 0, + __void__setUpViewOnSingleScreen__unsigned_int); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::View::EventHandlers); + +BEGIN_OBJECT_REFLECTOR(osgViewer::View) + I_BaseType(osg::View); + I_BaseType(osgGA::GUIActionAdapter); + I_BaseType(osg::View); + I_BaseType(osgGA::GUIActionAdapter); + I_Constructor0(____View, + "", + ""); + I_Method0(osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, + __Scene_P1__getScene, + "", + ""); + I_Method0(const osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, + __C5_Scene_P1__getScene, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "", + ""); + I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(void, setUpViewAcrossAllScreens, + Properties::NON_VIRTUAL, + __void__setUpViewAcrossAllScreens, + "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", + ""); + I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, + Properties::NON_VIRTUAL, + __void__setUpViewOnSingleScreen__unsigned_int, + "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", + ""); + I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, + Properties::NON_VIRTUAL, + __bool__containsCamera__C5_osg_Camera_P1, + "Return true if this view contains a specified camera. ", + ""); + I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, + "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", + "Also passes back the local window coords for the graphics context associated with the camera passed back. "); + I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, + "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", + "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); + I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, + "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", + ""); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); + I_Method0(void, assignSceneDataToCameras, + Properties::NON_VIRTUAL, + __void__assignSceneDataToCameras, + "", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_Constructor0(____View, + "", + ""); + I_Method0(osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, + __Scene_P1__getScene, + "", + ""); + I_Method0(const osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, + __C5_Scene_P1__getScene, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "", + ""); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, + __C5_osgGA_EventQueue_P1__getEventQueue, + "", + ""); + I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1, + "", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "", + ""); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "", + ""); + I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Set the DsplaySettings object associated with this view. ", + ""); + I_Method0(void, setUpViewAcrossAllScreens, + Properties::NON_VIRTUAL, + __void__setUpViewAcrossAllScreens, + "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", + ""); + I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, + Properties::NON_VIRTUAL, + __void__setUpViewOnSingleScreen__unsigned_int, + "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", + ""); + I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, + Properties::NON_VIRTUAL, + __bool__containsCamera__C5_osg_Camera_P1, + "Return true if this view contains a specified camera. ", + ""); + I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, + "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", + "Also passes back the local window coords for the graphics context associated with the camera passed back. "); + I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, + "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", + "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); + I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, + "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", + ""); + I_Method0(void, requestRedraw, + Properties::VIRTUAL, + __void__requestRedraw, + "", + ""); + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::VIRTUAL, + __void__requestContinuousUpdate__bool, + "", + ""); + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__requestWarpPointer__float__float, + "", + ""); I_Method0(void, assignSceneDataToCameras, Properties::NON_VIRTUAL, __void__assignSceneDataToCameras, diff --git a/src/osgWrappers/osgViewer/Viewer.cpp b/src/osgWrappers/osgViewer/Viewer.cpp index f42ec88ed..ccc5015ad 100644 --- a/src/osgWrappers/osgViewer/Viewer.cpp +++ b/src/osgWrappers/osgViewer/Viewer.cpp @@ -10,12 +10,13 @@ #include #include +#include +#include +#include #include #include #include -#include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -51,6 +52,220 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) I_BaseType(osgViewer::View); + I_BaseType(osgViewer::View); + I_Constructor0(____Viewer, + "", + ""); + I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::NON_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::Viewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::Viewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method1(void, setUseMainThreadForRenderingTraversals, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseMainThreadForRenderingTraversals__bool, + "Set whether the main thread, calling frame(), should be used for the rendering traversals. ", + ""); + I_Method0(bool, getUseMainThreadForRenderingTraversals, + Properties::NON_VIRTUAL, + __bool__getUseMainThreadForRenderingTraversals, + "Get whether the main thread, calling frame(), should be used for the rendering traversals. ", + ""); + I_Method0(osgViewer::Viewer::ThreadingModel, suggestBestThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__suggestBestThreadingModel, + "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::Viewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::Viewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "", + "true if the viewer respond to the QUIT_APPLICATION-event "); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCameraWithFocus__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::Viewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::Viewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getCameras, IN, osgViewer::Viewer::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::Viewer::Threads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationsThreads, IN, osgViewer::Viewer::OperationsThreads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getOperationsThreads__OperationsThreads_R1__bool, + "", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, setUpThreading, + Properties::NON_VIRTUAL, + __void__setUpThreading, + "Set up the threading and processor affinity as per the viewers threading model. ", + ""); + I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::NON_VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer. ", + ""); + I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, + __void__setUpRenderingSupport, + "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); I_Constructor0(____Viewer, "", ""); @@ -302,9 +517,493 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) __void__setUseMainThreadForRenderingTraversals__bool); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< OpenThreads::Thread * >); +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::Viewer::Contexts); -STD_VECTOR_REFLECTOR(std::vector< osg::Camera * >); +TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::Viewer::Windows); -STD_VECTOR_REFLECTOR(std::vector< osg::OperationsThread * >); +TYPE_NAME_ALIAS(std::vector< osg::Camera * >, osgViewer::Viewer::Cameras); + +TYPE_NAME_ALIAS(std::vector< OpenThreads::Thread * >, osgViewer::Viewer::Threads); + +TYPE_NAME_ALIAS(std::vector< osg::OperationsThread * >, osgViewer::Viewer::OperationsThreads); + +BEGIN_ENUM_REFLECTOR(osgViewer::Viewer::ThreadingModel) + I_EnumLabel(osgViewer::Viewer::SingleThreaded); + I_EnumLabel(osgViewer::Viewer::CullDrawThreadPerContext); + I_EnumLabel(osgViewer::Viewer::DrawThreadPerContext); + I_EnumLabel(osgViewer::Viewer::CullThreadPerCameraDrawThreadPerContext); + I_EnumLabel(osgViewer::Viewer::AutomaticSelection); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::Viewer::BarrierPosition) + I_EnumLabel(osgViewer::Viewer::BeforeSwapBuffers); + I_EnumLabel(osgViewer::Viewer::AfterSwapBuffers); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) + I_BaseType(osgViewer::View); + I_BaseType(osgViewer::View); + I_Constructor0(____Viewer, + "", + ""); + I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::NON_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::Viewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::Viewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method1(void, setUseMainThreadForRenderingTraversals, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseMainThreadForRenderingTraversals__bool, + "Set whether the main thread, calling frame(), should be used for the rendering traversals. ", + ""); + I_Method0(bool, getUseMainThreadForRenderingTraversals, + Properties::NON_VIRTUAL, + __bool__getUseMainThreadForRenderingTraversals, + "Get whether the main thread, calling frame(), should be used for the rendering traversals. ", + ""); + I_Method0(osgViewer::Viewer::ThreadingModel, suggestBestThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__suggestBestThreadingModel, + "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::Viewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::Viewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "", + "true if the viewer respond to the QUIT_APPLICATION-event "); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCameraWithFocus__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::Viewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::Viewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getCameras, IN, osgViewer::Viewer::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::Viewer::Threads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationsThreads, IN, osgViewer::Viewer::OperationsThreads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getOperationsThreads__OperationsThreads_R1__bool, + "", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, setUpThreading, + Properties::NON_VIRTUAL, + __void__setUpThreading, + "Set up the threading and processor affinity as per the viewers threading model. ", + ""); + I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::NON_VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer. ", + ""); + I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, + __void__setUpRenderingSupport, + "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_Constructor0(____Viewer, + "", + ""); + I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::NON_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::Viewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::Viewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method1(void, setUseMainThreadForRenderingTraversals, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseMainThreadForRenderingTraversals__bool, + "Set whether the main thread, calling frame(), should be used for the rendering traversals. ", + ""); + I_Method0(bool, getUseMainThreadForRenderingTraversals, + Properties::NON_VIRTUAL, + __bool__getUseMainThreadForRenderingTraversals, + "Get whether the main thread, calling frame(), should be used for the rendering traversals. ", + ""); + I_Method0(osgViewer::Viewer::ThreadingModel, suggestBestThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__suggestBestThreadingModel, + "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::Viewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::Viewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "", + "true if the viewer respond to the QUIT_APPLICATION-event "); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCameraWithFocus__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCameraWithFocus, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::Viewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::Viewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getCameras, IN, osgViewer::Viewer::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::Viewer::Threads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationsThreads, IN, osgViewer::Viewer::OperationsThreads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, + __void__getOperationsThreads__OperationsThreads_R1__bool, + "", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, setUpThreading, + Properties::NON_VIRTUAL, + __void__setUpThreading, + "Set up the threading and processor affinity as per the viewers threading model. ", + ""); + I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::NON_VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer. ", + ""); + I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, + __void__setUpRenderingSupport, + "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_SimpleProperty(osg::Camera *, CameraWithFocus, + __osg_Camera_P1__getCameraWithFocus, + __void__setCameraWithFocus__osg_Camera_P1); + I_SimpleProperty(bool, Done, + 0, + __void__setDone__bool); + I_SimpleProperty(osgViewer::Viewer::BarrierPosition, EndBarrierPosition, + __BarrierPosition__getEndBarrierPosition, + __void__setEndBarrierPosition__BarrierPosition); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + 0); + I_SimpleProperty(int, KeyEventSetsDone, + __int__getKeyEventSetsDone, + __void__setKeyEventSetsDone__int); + I_SimpleProperty(bool, QuitEventSetsDone, + __bool__getQuitEventSetsDone, + __void__setQuitEventSetsDone__bool); + I_SimpleProperty(osg::Operation *, RealizeOperation, + __osg_Operation_P1__getRealizeOperation, + __void__setRealizeOperation__osg_Operation_P1); + I_SimpleProperty(double, ReferenceTime, + 0, + __void__setReferenceTime__double); + I_SimpleProperty(osg::Node *, SceneData, + 0, + __void__setSceneData__osg_Node_P1); + I_SimpleProperty(osg::Timer_t, StartTick, + __osg_Timer_t__getStartTick, + __void__setStartTick__osg_Timer_t); + I_SimpleProperty(osgViewer::Viewer::ThreadingModel, ThreadingModel, + __ThreadingModel__getThreadingModel, + __void__setThreadingModel__ThreadingModel); + I_SimpleProperty(bool, UseMainThreadForRenderingTraversals, + __bool__getUseMainThreadForRenderingTraversals, + __void__setUseMainThreadForRenderingTraversals__bool); +END_REFLECTOR